Hello World in C on Linux
Hello World in C on Linux
C is a widely used computer language, man programs, and even the Linux OS is written in C.
by default, most Linux systems come with GCC (GNU Compiler Collection), if it's not installed, you can install it via your package manager.
You can compile C as any user on a system, so login with your standard user account/service account.
add the following to the source file:
now compile the program with the gcc compiler
the syntax is as follows: gcc -o {compiled-file} {source-code.c}
you should now have a new file called "helloworld" that you can execute:
That's it!
Hello World in C on Linux
Reviewed by Unknown
on
6:15 AM
Rating:
No comments: