C++/String Constants
Expert: Prince M. Premnath - 4/21/2008
QuestionDefine the String Constant.Explain with the help of Examples.
AnswerHi dear Kuldeep !
A string constant is any number of character enclosed between double quotes
eg
'a' is a character constant where as "a" is a string constant
a string constant may also include numbers special symbols , operators white spaces and so on ,in general any printable character !
eg "12346" , "!#$%" , "a12a12s" are valid examples for string constants
Post a follow up in case if you have any quires
Thanks and Regards !
Prince M. Premnath