To create your first C Program, open any text editor, copy and paste the following code
#includeint main() { printf ("Tis is my C program"); }
Save it as hello.c
Before you can run this program, you need to compile it. To compile run
gcc -o hello hello.c
Make the program executable with
chmod 755 hello
To run
./hello
Leave a Reply