Microprocessors

Q1: Consider the following rules about integer constant in C
  1. An integer constant must have at least one digit.
  2. An integer constant must not have a decimal point.
  3. An integer constant may be positive or negative.
  4. The default sign is positive.
  5. A maximum of one comma or blank is allowed.
Which of the above are correct?

A All

B 1, 2, 3, 4 only

C 1, 2, 3, 5

D 2, 3, 4, 5 only

ANS:B - 1, 2, 3, 4 only

No comma or blank is allowed in integer constant in C.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.