How to find size of arrayHow to find size of array

              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…

Read more »
06 Aug 2015

insert into arrayinsert 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", &…

Read more »
06 Aug 2015

cyclically permute the arraycyclically 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=…

Read more »
06 Aug 2015

sum of all elements in arraysum 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…

Read more »
06 Aug 2015

searching-element-in-an-arraysearching-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"); …

Read more »
06 Aug 2015

c program for Floyds trianglec 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…

Read more »
06 Aug 2015

C program to print ASCII valueC 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:  …

Read more »
06 Aug 2015

delete an element from arraydelete 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…

Read more »
06 Aug 2015

How to add two array / array additionHow 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…

Read more »
06 Aug 2015

insert number at desired position in an array 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…

Read more »
06 Aug 2015

find largest number in an array 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…

Read more »
06 Aug 2015
 
Top