Electronics and Communication Engineering - Microprocessors - Discussion

1. 

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

Answer: Option B

Explanation:

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


Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.