Write a simple hello, world! program using the command-line compiler. Your program should display \"Hello, World!\" to the screen using the printf function.
Name the program file hello.c.
Compile the code using the following command:
g++ hello.c -o hello
or
gcc hello.c -o hello
Run the program:
./hello
No comments:
Post a Comment