a better hello example implemented
This commit is contained in:
		@@ -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
									
								
							
							
						
						
									
										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 "hello.c"
 | 
			
		||||
#include "hello.h"
 | 
			
		||||
 | 
			
		||||
int main()
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
  hello();
 | 
			
		||||
  
 | 
			
		||||
  return 0;
 | 
			
		||||
int main() {
 | 
			
		||||
    hello();
 | 
			
		||||
    return 0;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user