Wednesday 7 March 2018

Begain with simple programming in C

Begain with simple programming in C:-


     /* Writes the words "Hello, World!" on the screen */
#include<stdio.h> int main() { printf("Hello, World!\n"); return 0; }


Display output:- Hello, World!

Note:-

#include<stdio.h> :-  stdio is standard for input /output, this allows us to use some 
commands which includes a file called stdio.h.


int  :-                      int is a return value.

main()  :-   The main() is the main function where program execution begins. Every C                                          program must contain only one main function.

printf() :-   It is a function in C, which display text on the screen.
return 0:-  At the end of the main function returns value 0.

1 comment: