c notes
c notes
Boilerplate Comments
Abhishek Singh 1
C
Abhishek Singh 2
C
Scanner Class
Mul ple scan in one me Mul ple prin ng in one me concept count in prin
Abhishek Singh 3
C
Abhishek Singh 4
C
Operators
1. Arithme c
a. Binary (mathema cal) operator: + - * / %
b. Unary operator: ++x x++ --x x—
c. Ternary operator: ?:
Abhishek Singh 5
C
Abhishek Singh 6
C
Output: break
Math function
String Function
Abhishek Singh 7
C
Conditional Branching/Selectional
Control/Decision Making
If Statement if else Statement if only one statement
Switch statement
Abhishek Singh 8
C
Loop Statement
1)Exit Controlled Loop/post tested loop (do while loop)
Abhishek Singh 9
C
Function
func on overloading (same name different parameter or same name but parameter
datatype different) is not supported in c
typedef
Abhishek Singh 10
C
#preprocessor directive
Abhishek Singh 11
C
Array
For understanding only
1. Int dim[row]
2. Int dim2[row][column]
3. Int dim3[depth][row][column] (generally not used but can be)
Row=sizeof(dim)/sizeof(dim[0])
Column= sizeof(dim[0])/sizeof(dim[0][0])
Abhishek Singh 12
C
Recursion
1. Base case
2. Work
3. Inner case
Abhishek Singh 13
C
Structure
In main Globally
Union
In main Globally
Abhishek Singh 14
C
Pointer
Declara on
Abhishek Singh 15
C
Memory allocation
Abhishek Singh 17
C
Abhishek Singh 18