Home » C++ Programming » Constants/Literals » Question
  1. The difference between P and ‘P’ is
    1. The first one is a character constant P and the second one is the string literal P
    2. The first one refers to a variable whose identifier is P and the second one refers to the character constant P
    3. Both are same
    4. All of above
    5. None of these
Correct Option: B

The first one refers to a variable whose identifier is P and the second one refers to the character constant P



Your comments will be displayed only after manual approval.