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 statements is not true?
Which of the following is called compile-time operators?
Can keywords be used as identifiers?
Write the following real constant into the exponent form:
7.214
Write the following real constant into the exponent form:
0.00005
Assume n = 10; what will be result of n++ and --n;?
Describe the differences between keywords and identifiers?
Differentiate “=” and “==”.
Write about Binary operators used in C++.
What are arithmetic operators in C++? Differentiate unary and binary arithmetic operators. Give example for each of them.
