C program for size of array #include int main( ) { int i,num; printf("\nEnter the hoe many elements you want?\n"); scanf("%d",&num); int a[num]; printf("\nEnter the %d elements:\n…
insert into array
C program - How to insert number into array #include #include void main() { int x[10]; int i, j, n, m, temp, key, pos; clrscr(); printf("Enter how many elements\n"); scanf("%d", &…
cyclically permute the array
C program to cyclically permute the array #include void main () { int i,n,number[30]; printf("Enter the value of the n = "); scanf ("%d", &n); printf ("Enter the numbers\n"); for (i=…
sum of all elements in array
Array summation - Sum of all elements in array #include #include #include void main() { int i,n,sum=0; int *a; clrscr(); printf("Enter the size of array A\n"); scanf("%d", &n); a=(int *) mal…
searching-element-in-an-array
C program to search an element in an array #include #include void main() { int array[10]; int i, N, keynum, found=0; clrscr(); printf("Enter the value of N\n"); …
c program for Floyds triangle
C program for Floyds triangle #include int main(){ int i,j,r,k=1; printf("Enter the range: "); scanf("%d",&r); printf("FLOYD'S TRIANGLE\n\n"); for(i=1;i for(j=1;j pri…
C program to print ASCII value

C program for printing ASCII value #include int main(){ int i; for(i=0;i printf("ASCII value of character %c: %d\n",i,i); return 0; } Output: …
delete an element from array

How to delete an element from an array #include void main() { int vectx[10]; int i, n, pos, element, found = 0; printf("Enter how many elements\n"); scanf("%d", &n); printf("Enter the eleme…
How to add two array / array addition

c program - addition of two array #include int main() { int a[20], b[20], c[30], i, n; printf("Enter the number of elements to the array:\n"); scanf("%d", &n); printf("\nEnter th…
insert number at desired position in an array

How to insert an element at desired position in an array #include int main(){ int a[50],size,num,i,pos,temp; printf("\nEnter size of the array: "); scanf("%d",&size); printf("\nEnter %d elements…
find largest number in an array

How to find largest number of an array #include int main(){ int a[50],size,i,big; printf("\nEnter the size of the array: "); scanf("%d",&size); printf("\nEnter %d elements in to the arra…