Why array starts with index 0

Answers were Sorted based on User's Feedback



Why array starts with index 0..

Answer / 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

Why array starts with index 0..

Answer / gopesh dubey

Because the name of array is a pointer

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Interview Questions

what is the difference between. system call and library function?

2 Answers   CDAC, Satyam,


What is Function Pointer? Explain with example?

3 Answers  


what are the different storage classes in c?

0 Answers   TCS,


Explain a file operation in C with an example.

0 Answers   Amdocs,


What are the 4 types of unions?

0 Answers  






What is const keyword in c?

0 Answers  


Why do we use pointer to pointer in c?

0 Answers  


What does sizeof return c?

0 Answers  


How arrays can be passed to a user defined function

0 Answers  


Difference between malloc() and calloc() function?

0 Answers  


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

0 Answers  


Write a C program to find the smallest of three integers, without using any of the comparision operators.

7 Answers   TCS,


Categories