Basic structure of a c programm
// basic structure of a c programm
#include <stdio.h>
#include <conio.h>// these are header files
// #include<stdio.h> means standered input and output
// syntax of the c programm basically syntax is the way of programm
// code that runs
int main() //int main is the main code every programm starts with int main.
{
printf("Hello world");
// printf is used to print the character, result or output
return 0;
}
// important points to remember while writing a c programm
// must use printf
// scanf( it is used to read character or a vlaue assign)
Comments
Post a Comment