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

How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?

2 Answers  


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

0 Answers  


c language interview questions & answer

0 Answers  


What is main () in c language?

0 Answers  


what is the associativity of bitwise OR operator?

1 Answers  


a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode

0 Answers  


what is the diffrenet bettwen HTTP and internet protocol

0 Answers  


write a program to convert a expression in polish notation (postfix) to inline (normal)

0 Answers   Siemens,


What is the maximum no. of arguments that can be given in a command line in C.?

0 Answers   HCL,


How would you print out the data in a binary tree, level by level, starting at the top?

6 Answers   Amazon, Microsoft,


Why we use conio h in c?

0 Answers  


What is far pointer in c?

0 Answers  


Categories