Q. Given str1= "Hello", what will be the values of


(a)str1[0]

(b)str1 [1]

(c)str1[-5]

(d)str1[-4]

(e)str1[5]

 
Answer =

(a) H

(b) e

(c)H

(d)e

(e)index out of range .

 
You can uderstand by watching videos -----
 


2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post