added a function
This commit is contained in:
parent
e6ec99ad5d
commit
d55a98d7a9
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
static void hello() {
|
||||||
|
printf("hello from a function!\n");
|
||||||
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
printf("Hello, World!\n");
|
printf("Hello, World!\n");
|
||||||
|
hello();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue