What is the real difference between arrays and pointers?
Answers were Sorted based on User's Feedback
Answer / mak
@ved: abey chutiye kyu bakchodi kar rha hai idhar....
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / jayu
in that case i just want to tell u 1 thing that the array
needs continuous memory ,but pointer could be flexible in the,
memory allocation cases.
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / nagendra kumar
pointer is dependent variable
array is not a dependent variable
array is a constant pointer type it is sequence of variables
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / shailesh
u can access arrays by index where pointers are help to pass references to the object
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / johnson
Down at the lowest level, they both store addresses, there is
no difference. The difference is simply how the C language
allows you to use them, specially with multi dimensional
arrays. Single dimemsion arrays and pointers are practically
interchangeable.
Is This Answer Correct ? | 37 Yes | 47 No |
Answer / ved prakash
There is NO DIFFERENCE between Array and Pointer... Both
are 100% Equivalent... Ya but Implementation wise Array
is more friendly than Pointer, Actually Internally array is
converted into Pointer by the compiler..
I can Write more if you are not getting my Point..
U can contact me at VED.COM@GMAIL.COM
Is This Answer Correct ? | 26 Yes | 89 No |
How important is structure in life?
Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.
2 Answers Scientific Atlanta, Wipro,
What does sizeof int return?
how to print value of e(exp1)up to required no of digits after decimal?
What is call by reference in functions?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What do header files do?
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 []);
5. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort
Diff between for loop and while loop?
Is javascript based on c?
write a program to read a number and print in words that is in sentence for example 21,219 then output is "twenty one thousand and two hundred nineteen" by using only control flow statements (only loops and switch case )?