a better hello example implemented

This commit is contained in:
2025-06-16 21:32:07 +03:00
parent 01b39949c2
commit bde2e44f89
4 changed files with 12 additions and 12 deletions

View File

@ -1,8 +1,5 @@
#include <stdio.h>
int hello()
{
printf("Hello C Programming Language 2025 Examples\n");
return 0;
void hello() {
printf("Hello C Programming Language 2025 Examples\n");
}

6
c-basic/hello.h Normal file
View File

@ -0,0 +1,6 @@
#ifndef HELLO_H
#define HELLO_H
void hello();
#endif

View File

@ -1,10 +1,7 @@
#include <stdio.h>
#include "hello.c"
#include "hello.h"
int main()
{
hello();
return 0;
int main() {
hello();
return 0;
}

BIN
main

Binary file not shown.