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 size of structure in c?

703


What is use of null pointer in c?

572


What is a ternary operator in c?

655


How would you use the functions fseek(), freed(), fwrite() and ftell()?

707


In a byte, what is the maximum decimal number that you can accommodate?

628






What is pass by value in c?

597


What is the purpose of main() function?

660


What does %2f mean in c?

676


write a program to print data of 5 five students with structures?

1609


Why we use conio h in c?

588


What is getch?

633


What is the difference between char array and char pointer?

527


What is pointer to pointer in c with example?

550


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

1253


What is 1d array in c?

602