Last updated 4 days ago
Save the program in a file named hello.c.
hello.c
Open your terminal or command prompt.
Compile the program using this command: gcc hello.c -o hello
gcc hello.c -o hello
Run the compiled program: ./hello
./hello
You should see the output:
Hello World