Q12: Distinguish between constants and variable.

 

A12:

 

 

Constants:

Variables:

Value Cannot Change

Value Can Change:

Declared with Keywords:

Declared with Data Types:

They represent fixed values like mathematical constants.

They are used to store and manipulate data

e.g. #define PI 3.14159265

e.g. int age = 25;

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.