To compile the C program you created in test.c, follow these steps:
Open your terminal.
Navigate to the directory where the
test.cfile is located. If it's in theDocumentsdirectory, you can use:cd ~/DocumentsCompile the program using
gcc:gcc test.c -o testThis command compiles
test.cand creates an executable namedtest.Run the compiled program:
./test
You should see the output:
hello world
Let me know if you need further assistance!
