C Programming Introduction : Tips
- Every C Program Should have exactly one main function
- C Program Execution Always Starts from main.
- Execution of C Program begins at Opening brace of function and ends at closing brace of the function
- Generally all statements in c are written in Lowercase Letters.
- Uppercase Letters are used for Symbolic names,output strings and messages
- Every C statement must ends with semicolon
- All variables must be declared with respective data types before using .
- C is free form-Language
- Comments can be inserted anywhere in C Program , but nested comments are not supported by C .
- Braces are Generally Used for the Grouping of statements
Sample C Program :
//C hello world example
#include <stdio.h>
int main()
{
printf("Hello world\n");
return 0;
}
Output:
Hello world
No comments:
Post a Comment