Daily C Language Questions With Explanations

1. The illegal constant is: .

A.‘\2’ B. ” ” C.‘3’ D.‘\483’

Answer: D

Explanation: A backslash followed by a number is an escape character for an octal number, and octal cannot include the digit 8.

2. The incorrect C language identifier is .

A.ABC B.abc C.a_bc D.ab.c

Answer: D

Explanation: An identifier is defined as a combination of letters, numbers, and underscores, with the first character being a letter or underscore. The period is not allowed in identifiers.

Leave a Comment