void and int main
This commit is contained in:
15
c-basic/void.c
Normal file
15
c-basic/void.c
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user