First Program in C "Hello World!"



// Preprocessor directive stdio.h is the header file containing I/O function declarations

#include<stdio.h>

//  Each C program must have one main function 

int main()

{

// Prints Hello World! and '/n' advanced the cursor to a newline

printf("Hello World!\n");

return 0;

}

OUTPUT 

Hello World!

No comments:

Post a Comment