a better hello example implemented
This commit is contained in:
@ -1,8 +1,5 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
int hello()
|
void hello() {
|
||||||
{
|
|
||||||
printf("Hello C Programming Language 2025 Examples\n");
|
printf("Hello C Programming Language 2025 Examples\n");
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
6
c-basic/hello.h
Normal file
6
c-basic/hello.h
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#ifndef HELLO_H
|
||||||
|
#define HELLO_H
|
||||||
|
|
||||||
|
void hello();
|
||||||
|
|
||||||
|
#endif
|
@ -1,10 +1,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "hello.c"
|
#include "hello.h"
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
|
|
||||||
|
int main() {
|
||||||
hello();
|
hello();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user