diff --git a/c-basic/hello.c b/c-basic/hello.c index 2154a58..2140052 100644 --- a/c-basic/hello.c +++ b/c-basic/hello.c @@ -1,8 +1,5 @@ #include -int hello() -{ - printf("Hello C Programming Language 2025 Examples\n"); - - return 0; +void hello() { + printf("Hello C Programming Language 2025 Examples\n"); } diff --git a/c-basic/hello.h b/c-basic/hello.h new file mode 100644 index 0000000..f19e5d3 --- /dev/null +++ b/c-basic/hello.h @@ -0,0 +1,6 @@ +#ifndef HELLO_H +#define HELLO_H + +void hello(); + +#endif diff --git a/c-basic/main.c b/c-basic/main.c index 0d3132a..4579bdd 100644 --- a/c-basic/main.c +++ b/c-basic/main.c @@ -1,10 +1,7 @@ #include -#include "hello.c" +#include "hello.h" -int main() -{ - - hello(); - - return 0; +int main() { + hello(); + return 0; } diff --git a/main b/main deleted file mode 100755 index 59dab49..0000000 Binary files a/main and /dev/null differ