Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 1 (Q.No. 18)
18.
Which of the following is not a valid real constant in C?
1.2 e 2.0
-2.3 e - 2
-2.3 E 2
-2.3 e 2
Answer: Option
Explanation:

In C real constant expressed in exponential form, mantissia and exponent should be separated by e (and not E).

Discussion:
3 comments Page 1 of 1.

Shikhar said:   7 years ago
The answer should be A) 1.2e2.0 as the mentessa part can only be a positive or negative integer but cannot be a float type.

Jayshri said:   9 years ago
The answer given is wrong. It should be option A. Because we can only use the integer in exponent part. We can use E or e to represent exponent.

Shraddha said:   9 years ago
Will 2.3 e -2 work?

Post your comments here:

Your comments will be displayed after verification.