You are here:

C++/String Constants

Advertisement


Question
Define the String Constant.Explain with the help of Examples.

Answer
Hi 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

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Prince M. Premnath

Expertise

Years of research in C/C++ Will bring you all facts regarding , OOPS , SVGA , MOUSE , BIOS , IVT , Feel free to query me :-)

Experience

More than 5 years

Education/Credentials
MCA

©2016 About.com. All rights reserved.