Last active
April 23, 2021 23:08
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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