Home / ECE / Microprocessors :: Discussion

Discussion :: Microprocessors

  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?

  2. A.
    All
    B.
    1, 2, 3, 4 only
    C.
    1, 2, 3, 5
    D.
    2, 3, 4, 5 only

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment