void and int main

This commit is contained in:
Mert Gör
2024-10-30 05:09:33 +03:00
parent 73e2790bda
commit fe1f36e158
2 changed files with 17 additions and 0 deletions

15
c-basic/void.c Normal file
View File

@ -0,0 +1,15 @@
#include <stdio.h>
void foo()
{
printf("I'm foo\n");
}
int main()
{
printf("I'm main\n");
foo();
return 0;
}