0
C prigraming have a negtive index????Like mean a[-1];
3 ответов
0
nope
0
why
0
Mari Raja.S
index no. of arrays are relative to their distance from the first address. so 0th position would be the address itself, 1st position is 0th address + 1 and so on.
Now negative index would be like going to 0th address - 1, which is not allocated to the array. This would result in a segmentation fault error.
Hope this helped