Tuesday, 7 October 2014

Basic structure of c programming

#include<studio.h>
#include<conio.h>
void main()
{
     .............;
     .............;
}
First two lines are to add the special functions which we are going to use in our program.
main() is our programming function which returning nothing hence void is written. if our function return the value of type integer then function would be int main().
The containt of function is compulsorily written in curly bracket.
In function every statement ends with semicolon.
After writing your programming compile the program. If no error is present then run the program. As a result you will get the desired output.

No comments:

Post a Comment