Advertisements
Advertisements
Question
What is the difference between 56L and 56?
Advertisements
Solution
56L – The suffix L forces the constant to be represented as long, which occupies 4 bytes.
56 – This will be represented as int type constant which occupies 2 bytes as per Turbo C++.
APPEARS IN
RELATED QUESTIONS
Which of the following operator is an extraction operator in C++?
Which of the following statements is not true?
Which of the following is called compile-time operators?
Write the following real constant into the exponent form:
0.00005
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 |
Differentiate “=” and “==”.
Write a short note on the const keyword with an example.
Consider the following C++ statement. Are they equivalent?
char ch = 67;
char ch = ‘C’;
How relational operators and logical operators are related to one another?
