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 |
write the function int countchtr(char string[],int ch);which returns the number of timesthe character ch appears in the string. for example the call countchtr("she lives in Newyork",'e') would return 3.
What are formal parameters?
Is null equal to 0 in sql?
What is static memory allocation?
What is bash c?
What is a pointer in c?
Explain Basic concepts of C language?
wat is the difference between a definition and declaration? float y;---it looks like a declaration..but it s a definition.how?someone explain
Is main a keyword in c?
What is floating point constants?
What library is sizeof in c?
write a program to count the no of repaeted words in a line?