void and int main

This commit is contained in:
Mert Gör 🇹🇷 2024-10-30 05:09:33 +03:00
parent 73e2790bda
commit fe1f36e158
Signed by: hwpplayer1
GPG Key ID: 03E547D043AB6C8F
2 changed files with 17 additions and 0 deletions

View File

@ -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
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;
}