Advertisements
Advertisements
प्रश्न
Write a short note on the const keyword with an example.
Advertisements
उत्तर
const is the keyword used to declare a constant, const keyword modifies/restricts the accessibility of a variable. So, it is known as an Access modifier.
APPEARS IN
संबंधित प्रश्न
Which of the following is called compile-time operators?
What are keywords?
Assume n = 10; what will be result of n++ and --n;?
Describe the differences between keywords and identifiers?
What is the difference between 56L and 56?
Determine which of the following are valid constant? And specify their type.
‘Name’
Determine which of the following are valid constant? And specify their type.
‘\t’
Determine which of the following are valid constant? And specify their type.
27,822
What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.
How relational operators and logical operators are related to one another?
