C++ Declare a StringIn C++ the
stringkeyword is used to define a string object. the
stringdata type exist in string library which has to be included in your application using below syntax:
Example of C++ Declare a String
In this page (written and validated by A. Gawali) you learned about C++ Declare a String . What's Next? If you are interested in completing Cpp tutorial, your next topic will be learning about: Cpp String Concatenation.
Incorrect info or code snippet? We take very seriously the accuracy of the information provided on our website. We also make sure to test all snippets and examples provided for each section. If you find any incorrect information, please send us an email about the issue: firstname.lastname@example.org.