Sunday, 15 September 2013

How to make C First Program

Before you start: To learn how to compile a c program in C click here or click here


Syntax
main( )
All c programs contain a main( ) structure (lowercase) that follows this format:
<optional return type  > main (<optional arguments> ){
// logic statements
}
Program
#include"studio.h"
// it include the standard input output header file
int main( ) // it is the main function
{
printf("hello kushagra");
return 0;
}
// remember line start with "//" are comments and will not compile
See how to compile in previous post
Happy coding :-)

To learn more in C click here