24 lines
357 B
C
24 lines
357 B
C
#include <stdio.h>
|
|
|
|
|
|
int array[] = {23, 34, 12, 17, 204, 99, 16};
|
|
#define TOTAL_ELEMENTS sizeof(array) / sizeof(array[0])
|
|
|
|
|
|
int main()
|
|
{
|
|
int d;
|
|
|
|
#ifdef DEBUG
|
|
printf("sizeof(array) = %d\n", TOTAL_ELEMENTS);
|
|
#endif
|
|
|
|
for (d = 0; d < TOTAL_ELEMENTS ; d++)
|
|
printf("%d\n", array[d]);
|
|
|
|
return 0;
|
|
}
|
|
|
|
/* vim:filetype=c:fileencoding=utf-8
|
|
*/
|