JT(IT) 2018 PART-B Computer Science
April 4, 2025JT(IT) 2018 PART-B Computer Science
April 4, 2025JT(IT) 2018 PART-B Computer Science
Question 1 |
Which of the following numerical values is NOT a valid constant in C language?
12345L | |
018CDF
| |
9.3e12 | |
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.
→ 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.
→ 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.