0
Can any one tell me how i can refer to the charector ' w ' in this code i tried my level but it's showing index error??????
str = "Hello world!" array = [1,2,3,[str],4] print(array[3])
5 Antworten
+ 1
dnt use str its a builtin function
string ="hello world"
array=[1,2,3,[string],4]
print (array[3][0][6])
0
I'm sorry I couldn't get it,can be of more detail please???
0
try this,
string str="hello world";
cout<<str.at(6);
include string header also
shared that code too
0
thank you
0
thanks again