0

What is the use of string?

9th Nov 2016, 8:23 AM
rashmi bansal
rashmi bansal - avatar
2 Respuestas
0
storing things(eg: user input, phrases etc) string van hold anything(any letter number symbol etc)
9th Nov 2016, 11:58 AM
Ziyaan Hassan
Ziyaan Hassan - avatar
0
#include <iostream> using namespace std; int main() { string s1 = "string"; string s2 = "1,2,3 are not numbers but are characters"; cout<<s1<<endl; cout<<s2; return 0; }
9th Nov 2016, 2:11 PM
Rahul Chittimalla
Rahul Chittimalla - avatar