What is the real difference between arrays and pointers?

Answer Posted / sankar s

array refer data in memory location , pointer refer address
to the memory location ,pointer refer the pointee
int *a;
int b[10];
a=&b;
where a is the pointer array b is pointee which point out
the starting memory location of an array.

Is This Answer Correct ?    24 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is boolean a datatype in c?

777


What is the difference between procedural and functional programming?

752


What is a spanning Tree?

1273


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1155


Write a program to swap two numbers without using a temporary variable?

872


An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

855


What is #include stdlib h?

877


What is call by value in c?

776


Tell me with an example the self-referential structure?

774


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

849


Is there anything like an ifdef for typedefs?

917


What are valid signatures for the Main function?

974


what type of questions arrive in interview over c programming?

1791


How can I direct output to the printer?

1080


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1910