Local and Global Variable

Program:

Output:

The value of a: —5

The value of num: —50

 

Data Type: float

Program:

Output:

Marks in science: —85.63

Marks in maths: —45.66

The value of a: —45

Data Type: Int

Program:

Output:

My marks: —86

Books cost: —150

My mobile number: —89892589

My number: —898925899

 

 

Data Type: char

Program:

Output:

Character a value: —Q

Character b value: —L

Character c value: —A

Data Type: boolean

Program:

Output:

Status: —false

1 9 10 11