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 |
Is fortran still used today?
What is logical error?
I need previous papers of CSC.......plz help out by posting them.......
Write a program to add the following ¼+2/4+3/4+5/3+6/3+... (Like up to any 12 no.s)
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Differentiate between the = symbol and == symbol?
Write a program to print "hello world" without using a semicolon?
number of times a digit is present in a number
#include <stdio.h> #define sqr(x) (x*x) int main() { int x=2; printf("value of x=%d",sqr(x+1)); } What is the value of x?
16 Answers Accel Frontline, Opera, Oracle,
Write a factorial program using C.
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
List the difference between a "copy constructor" and a "assignment operator"?