The difference between x and ‘x’ is?
(a) The first one refers to a variable whose identifier is x and the second one refers to the character constant x
(b) The first one is a character constant x and the second one is the string literal x
(c) Both are same
(d) Both are string literal
I had been asked this question in exam.
This key question is from Constants topic in portion Types, Pointers, Arrays & Structures in C++ of C++