Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
ex: single array string games[3]; games[0]="football"; games[1]="capture the flag"; games[2]="Simon says"; cout<<games[0]; //include string //ex: string using char array char str1[6]="hello"; cout<<str1; //use of string is better as we can use various functions // u can use vector also...
21st Jul 2016, 6:45 AM
VISHAL PRAJAPATI
VISHAL PRAJAPATI - avatar