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 operator is an extraction operator in C++?
The following constant is of which type?
032
The following constant is of which type?
04.14
Write the following real constant into the exponent form:
0.00005
Match the following.
| A | B |
| (a) Modulus | (1) Tokens |
| (b) Separators | (2) Remainder of a division |
| (c) Stream extraction | (3) Punctuators |
| (d) Lexical Units | (4) get from |
Describe the differences between keywords and identifiers?
Write about Binary operators used in C++.
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
Determine which of the following are valid constant? And specify their type.
0.5
How relational operators and logical operators are related to one another?
