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 |
How do I declare an array of N pointers to functions returning pointers to functions returning pointers to characters?
Implement bit Array in C.
Are the expressions * ptr ++ and ++ * ptr same?
Do you have any idea about the use of "auto" keyword?
If 4 digits number is input through the keyboard, Write a program to calculate sum of its 1st & 4th digit.
How to avoid buffer overflow?
What is indirect recursion? give an example?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
a linearly ordered set of data elements that have the same structure and whose order is preserved in storage by using sequential allocation a) circular b) ordinary c) array d) linear list
differnce between do and do while
What are the 5 organizational structures?
Which of the following is not a valid declaration for main ()? 1) int main() 2) int main(int argc, char *argv[]) 3) They both work