Advertisements
Advertisements
प्रश्न
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
Advertisements
उत्तर
Both the statements are equivalent as they declare ‘ch’ to be char and initialize it with the value of 67. Since this is the ASCII code for ‘C’, the character constant also can be used to initialize ‘ch’ to 67.
APPEARS IN
संबंधित प्रश्न
Which of the following operator is an extraction operator in C++?
Which of the following statements is not true?
The following constant is of which type?
032
Write the following real constant into the exponent form:
23.197
Write the following real constant into the exponent form:
0.319
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 |
Is C++ case sensitive? What is meant by the term “case sensitive”?
Differentiate “=” and “==”.
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’
