C

C PROGRAM
1 simple if
2 else if
3 Conditional Operator
4 Switch-Case
5 Loop
6 Pattern
7 Array
8 Array 2D
9 String
10 Function
11 Pointer
12 Structure

Simple IF

Else If

Conditional Operator





Switch-Case






Loop





Pattern


*****
*      *
*      *
*      *
*****


1
1 2
1 2 3
1 2 3 4


1
2 3
4 5 6
7 8 9 10


1
2 3
3 4 5
4 5 6 7


1
0 1
1 0 1
0 1 0 1


*
* *
* * *
   * * * *


*****
****
***
**
*


AAAAA
BBBB
CCC
DD
E


12345
1234
123
12
1


55555
4444
333
22
1


     1
   A B
  2 3 4
C D E F


   1
  2 2
 3 3 3
4 4 4 4


    *
   * *
  * * *
 * * * *


Array

Array 2D

Structure






Function