Basics of C Programming
| Concept | Explanation |
|---|---|
| Compiler: | A tool that converts C code (.c) into machine code (binary). |
| Structure: | Every C program must have a main() function where execution starts. |
| Syntax: | C is case-sensitive. Statements end with a semicolon ;. |
| Comments: | Single-line // comment and Multi-line /* comment */. |
Structure of a Simple C Program
#include<stdio.h> -- is a Preprocessor Directive(Header file) in C
int main() -- is a Main Function in C
{} -- is a Block of code in C
Output in C
printf(Hello World!\n"); -- See Output

