void and int main
This commit is contained in:
parent
73e2790bda
commit
fe1f36e158
@ -1,5 +1,7 @@
|
||||
2024-10-30 Mert Gör <mertgor@masscollabs.xyz>
|
||||
|
||||
* c-basic/void.c (main): Void/Return
|
||||
|
||||
* c-basic/return_example_001.c: return example 001
|
||||
|
||||
* c-basic/return_not_reachable.c (main): reachable code and unreachable code return
|
||||
|
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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user