Skip to content

Instantly share code, notes, and snippets.

@thanoskoutr
Last active April 23, 2021 23:08
Show Gist options
  • Save thanoskoutr/6b0baf98e3115bbb6e762a58c1367d7e to your computer and use it in GitHub Desktop.
Save thanoskoutr/6b0baf98e3115bbb6e762a58c1367d7e to your computer and use it in GitHub Desktop.
A simple C program that initializes an array with 100 elements and prints it.
#include <stdio.h>
int main ()
{
int a[100];
for (int i = 0; i < 100; i++) {
a[i] = i;
}
for (int i = 0; i < 100; i++) {
printf("%d ", a[i]);
}
printf("\n");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment