...
JT(IT) 2018 PART-B Computer Science
April 4, 2025
JT(IT) 2018 PART-B Computer Science
April 4, 2025
JT(IT) 2018 PART-B Computer Science
April 4, 2025
JT(IT) 2018 PART-B Computer Science
April 4, 2025

JT(IT) 2018 PART-B Computer Science

Question 1

Which of the following numerical values is NOT a valid constant in C language?

A
12345L
B
018CDF
C
9.3e12
D
0XBCF
Question 1 Explanation: 
→ 12345L integer long is valid integer
→ 018CDF starts with 0 means octal number but actually we are given decimal and hexa numbers. So it is not a valid constant.
→ 9.3e12 float number
→ 0XBCF is hexa number. Valid constant.
Correct Answer: B
Question 1 Explanation: 
→ 12345L integer long is valid integer
→ 018CDF starts with 0 means octal number but actually we are given decimal and hexa numbers. So it is not a valid constant.
→ 9.3e12 float number
→ 0XBCF is hexa number. Valid constant.

Leave a Reply

Your email address will not be published. Required fields are marked *