Computer Science, asked by vyasmanan075, 3 months ago

Given string=”Hello”, what will be the values of

a) string[0]

b) string[1]

c) string[-5]

d) string[-4]

e) string[5]​

Answers

Answered by kamalrajatjoshi94
3

Answer:

String[0]=H

String[1]=e

String[-5]=no value

String[-4]=no value

String[5]=no value

Note:In array positions are from 0 to n-1.So H is at position 0.Limit is till 4 as words are 5.

Similar questions