Helps us in writing codes by correcting our methods etc... for eg VSCode
Helps to run the code and convert it into machine language for our CPU to understand it... for eg mingw
- pre prcessor commands -
#include<stdio.h>
... studio.h file ki necessity hai is program me so vo vali file include kro - funtions -
int main()
... program ko break krne ke liye use hota hai taki alg alg cheeze perform kr paeint main()
alg hota hai coz vaha se program ka execution shuru hota...main
isme function ka name hai andint
ye function return krta hai, ye dusre functions ko call krta hai taki dusre functions return me answer krte hai
- variables
- statements
- expressions
- comments
- Pre processing
- Compilation
- Assembly
- Linking
- Loading
- A name given to a memory location
- Declared by writing type
variable_name
- Initialized and declared by type
variable_name = value;
- Can contain alphabets, digits, and underscore
- A variable name can start with an alphabet and undercore only
- Can't start with a digit
- No whitespace & reserved keywords is allowed
- Valid varibles names:
int anshul
,float anshul123
,char _anshul34
- Invalid variable name:
$anshul
,int 77anshull
,char long
;
- Basic data type: int, char, float, double
- Dervied data type: array, pointer, structure, union
- Enumeration data type: emun
- Void data type: void
An operator is a symbol used to perform operations in given programming language
- If statement
- If Else statement
- If - Else If ladder
- Nested If
- Switch expression must be 'int' or 'char'
- Case value must be an integer or a char
- Case must come inside switch
- Break is not a must
- Do While Loop
- While loop
- For Loop
- 1 we can initialize more than 1 variable at a time
- Putting expression in code is option and not a must task