2
Answers

why index value is starts from 0 in array

Sandy Surwase

Sandy Surwase

9y
387
1
why index value is starts from 0 in array?
I saw some answer like this index is used as an offset.The first element of the array is exactly contained in the memory location that array refers (0 elements away), so it should be denoted as array[0].
I cant understand this one can u explain in easy language. 
Answers (2)
0
Anil Kumar

Anil Kumar

NA 872 55.9k 9y
code is looking fine by the looks of it. Just check for null value, before appending it to the string builder..
0
Sousa Pambo

Sousa Pambo

NA 92 12.6k 9y
I think is the way i organized the (') or ("") in these lines

sqlBuilder.Append(frmAl.tbQrtResp2.Text + "','"); //9

sqlBuilder.Append("@PicResp2,'"); //10
sqlBuilder.Append(frmAl.tbCasaResp2.Text + "')"); //11

it shows there's a error near the last line
0
Anil Kumar

Anil Kumar

NA 872 55.9k 9y
What error you are getting?