Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

looping through an array in C

#include <stdio.h>
main() {
   int LA[] = {1,3,5,7,8};
   int item = 10, k = 3, n = 5;
   int i = 0, j = n;   
   printf("The original array elements are :
");
   for(i = 0; i<n; i++) {
      printf("LA[%d] = %d 
", i, LA[i]);
   }
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #looping #array #C
ADD COMMENT
Topic
Name
8+1 =