/* Program to print hello world to the screen */ /* title */
#include <stdio.h> /* import library file */
main() /* Main function */
{
printf(“Hello world”); /*out put statement */
}
how to compile the code into a executable file suppose you are using gcc and the source code file is helloworld.c,you need to do is simply type:gcc helloworld –o helloworld
You would have a new file named helloworld in the same folder as the source file saved.
0 comments:
Post a Comment