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:
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;
}
{
printf("hello kushagra");
return 0;
}
// remember line start with "//" are comments and will not compile
See how to compile in previous post
Happy coding :-)
Happy coding :-)
No comments:
Post a Comment