Difference Between Variable And constant

1 answer

Answer

1277987

2026-04-20 21:30

+ Follow

A constant and variable are variations of data types.

int a;

is a variable and its value can be changed by the program as the program runs.

const int b;

is a constant with a fixed value and will have its value set and may not be changed by the program as as the program runs.

All data types may be declared as a constant.

Variable Value Can Be Changed By You In Programme.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.