int main(){ string a="this is awesome"; cout<<a[9]; } output=????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

int main(){ string a="this is awesome"; cout<<a[9]; } output=?????

14th Sep 2016, 8:20 PM
Omar Al Fahad
Omar Al Fahad - avatar
3 Answers
+ 2
I suppose you mean a[9]. The output is the 10th character of "this is awesome", ie 'w'.
14th Sep 2016, 8:25 PM
Zen
Zen - avatar
0
thanks :)
14th Sep 2016, 8:37 PM
Omar Al Fahad
Omar Al Fahad - avatar
0
w
16th Sep 2016, 2:37 AM
Franco Muñiz
Franco Muñiz - avatar