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 |
What is call by reference in functions?
program to find the magic square
Find the largest number from the given 2 numbers without using any loops and the conditional operator.
"I LOVE MY COUNTRY" write a c program to get "COUNTRY MY LOVE I" as the output. Use any other programming language. It is not mandatory to use C.
11 Answers ABC Infotech, ADP, College School Exams Tests, Kovair,
Write a program to find the number of times that a given word(i.e. a short string) occurs in a sentence (i.e. a long string!). Read data from standard input. The first line is a single word, which is followed by general text on the second line. Read both up to a newline character, and insert a terminating null before processing. Typical output should be: The word is "the". The sentence is "the cat sat on the mat". The word occurs 2 times.
Explain the use of 'auto' keyword in c programming?
difference between function & structure
What are the preprocessor categories?
why array index always starts from zero??
With the help of using classes, write a program to add two numbers.
m=++i&&++j(||)k++ printf("%d"i,j,k,m)
explain what is a newline escape sequence?