Microprocessors - Engineering

Q1:

Assertion (A): In C a character constant is either a single alphabet or digit or special symbol enclosed within single inverted commas. Reason (R): In C the maximum length of a character constant can be 2 characters.

A Both A and R are correct and R is correct explanation of A

B Both A and R are correct but R is not correct explanation of A

C A is correct R is wrong

D A is wrong R is correct

ANS:C - A is correct R is wrong

A character constant is a single alphabet or digit or special character enclosed within single inverted comma.