Answers for "c program print array of ints"

C
5

print an array in c

int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0};
int i;

for (i = 0; i < 10; i++) {
  printf("%d ", array[i]);
}
Posted by: Guest on March-06-2021
3

code to print out entire array in c

for (int i = 0; i < length; i++)
    {     
      printf("%d ", arr[i]);
    } //Change "length" to size of your own array and rename "arr" to your own array name
Posted by: Guest on November-02-2021

Code answers related to "C"

Browse Popular Code Answers by Language