Monday, 8 June 2015

Print a message in C Language

Print a message in C Language

void main()
printf("Hello C");

Output: Hello C


Line 1- It known as preprocessor , means that before compilation the content of stdio.h added to your program.
Line 2: Any C program start with a main function. Main is actually entry point of your code.Void is used to denote the return type of main(Latter I cover this topic).
Line 3 and 5: Opening and parenthesis of main function used to denote which portion of code belongs to main function.
Line 4:-It is used to print any message to the terminal or output window.