Why array starts with index 0
Answers were Sorted based on User's Feedback
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 |
what is the difference between. system call and library function?
What is Function Pointer? Explain with example?
what are the different storage classes in c?
Explain a file operation in C with an example.
What are the 4 types of unions?
What is const keyword in c?
Why do we use pointer to pointer in c?
What does sizeof return c?
How arrays can be passed to a user defined function
Difference between malloc() and calloc() function?
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
Write a C program to find the smallest of three integers, without using any of the comparision operators.