बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

Showing posts with label explain the basic structure of c program with an example. Show all posts
Showing posts with label explain the basic structure of c program with an example. Show all posts

STUCTURE OF C PROGRAM



STRUCTURE OF C  PROGRAM
Basic structure of c program with example, explain the Basic structure of c program with an example,explain basic structure of c program

/* This program prints Hello World on screen */
-----------------------------
#include <stdio.h>
Void main()
{
  printf(''Hello World\n'');
}
-----------------------------
 

1 . /* This program ... */  : The symbols/* and*/ used for comment. This Comments are ignored by the compiler, and are used to provide useful information about program to humans who use it.

2. #include<stdio.h> : This is a preprocessor command which tells compiler to include stdio.h file.

3. main(): C programs consist of one or more functions. There must be one and only one function called main. The brackets following the word main indicate that it is a function and not a variable.

4. { } : braces surround the body of the function, which may have one or more instructions/statements.

5. printf() : it is a library function that is used to print data on the user screen.

6. ''Hello World\n'' is a string that will be displayed on user screen \n is the newline character.
; a semicolon ends a statement.
 

C Program example List