Valid Character Constants.

Q17. Which of the following are valid character constants in C++?

‘c’, ‘abc’, “abc”, my, ‘main’s’, ‘”’, ‘char, ‘\\’.

Ans. ‘c’, ‘abc’, ‘”’ and ‘\\’ are valid character constants.

Leave a Reply

Your email address will not be published. Required fields are marked *

25 Views
%d bloggers like this: