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 |
write a program to sum of its digit with using control structure or with out using loop. for ex: let the number is 25634 then answer will be=2+5+6+3+4=20
Can a binary search tree be used as an index? If yes, how? Explain
#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
main() {int a=200*200/100; printf("%d",a); }
wap to print "hello world" without using the main function.
what would be the output of the following program main() { int a[] = {1,2,3,4,5}; int *ptr = {a,a+1,a+2,a+3,a+4}; printf("%d %d %d %d",a,*ptr,**ptr,ptr); } }
Explain Basic concepts of C language?
How can you tell whether two strings are the same?
Given a number N, product(N) is the product of the digits of N. We can then form a sequence N, product(N), product(product(N))… For example, using 99, we get the sequence 99, 99 = 81, 81 = 8. Input Format: A single integer N Output Format: A single integer which is the number of steps after which a single digit number occurs in the sequence. Sample Test Cases: Input #00: 99 Output #00: 2 Explanation: Step - 1 : 9 * 9 = 81 Step - 2 : 8 * 1 = 8 There are 2 steps to get to this single digit number. Input #01: 1137638147
What is hash table in c?
what is the use of call back function in c?tell me with example