Q:

What does the keyword const mean?

0

What does the keyword const mean?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Answer:

The const qualifier only gives the direction to the compiler that the value of qualify object cannot be changed. In simple words, const means not modifiable (cannot assign any value to the object at the run time).

Syntax:

const DataType Identifier = Value;
e.g.
const int iData = 0;

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
When should we use const in a C program?... >>
<< What do you mean by enumeration in C?...