Why array starts with index 0

Answer Posted / saurabh upman

Index is used as an offset value.Giving value 0 to the starting address means that we are 0 element far from the destination in a contigious memory arrangment.It makes the indexing a coherent offset to be assigned.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between #include and #include 'file' ?

602


What is the ANSI C Standard?

775


What is difference between class and structure?

569


What is the scope of static variables in c language?

624


How to get string length of given string in c?

605






#include { printf("Hello"); } how compile time affects when we add additional header file .

1421


Can include files be nested?

624


Are there any problems with performing mathematical operations on different variable types?

569


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

727


What Is The Difference Between Null And Void Pointer?

638


What is meant by gets in c?

604


Difference between goto, long jmp() and setjmp()?

701


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1368


What is variable in c example?

590


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

734