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 r callback function?
what is the output of the following program? main() { int c[]={2,8,3,4,4,6,7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf("%d",*c); ++q; } for(j=0;j<5;j++) { printf("%d",*p); ++p; } }
Write a factorial program using C.
Using which language Test cases are added in .ptu file of RTRT unit testing???
What does struct node * mean?
What does *p++ do? What does it point to?
What is meant by 'bit masking'?
how the size of an integer is decided? - is it based on processor or compiler or OS?
19 Answers HCL, JPR, Microsoft, nvidia,
Write a program for finding factorial of a number.
String concatenation
wat are the two methods for swapping two numbers without using temp variable??
prototype of sine function.