Print An Array In C

[Solved] Print An Array In C | C - Code Explorer | yomemimo.com
Question : print an array in c

Answered by : marton

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]);
}

Source : https://www.tutorialspoint.com/learn_c_by_examples/program_to_print_array_in_c.htm | Last Update : Sat, 13 Mar 21

Question : how to print out an array in c

Answered by : elated-eland-nvs0h5l3x6o5

#include <stdio.h>
int main() { int array[10] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0}; int loop; for(loop = 0; loop < 10; loop++) printf("%d ", array[loop]); return 0;
}

Source : https://www.tutorialspoint.com/learn_c_by_examples/program_to_print_array_in_c.htm | Last Update : Tue, 21 Sep 21

Answers related to print an array in c

Code Explorer Popular Question For C