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

What is pivot in c?

565


What is the equivalent code of the following statement in WHILE LOOP format?

764


What are the different properties of variable number of arguments?

659


What are the disadvantages of c language?

615


what do you mean by inline function in C?

610






Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

4738


What is the best way to comment out a section of code that contains comments?

777


What are the advantages of Macro over function?

1194


What is the difference between a free-standing and a hosted environment?

640


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

728


How can I remove the trailing spaces from a string?

612


What is a constant and types of constants in c?

599


Can you apply link and association interchangeably?

670


Explain how do you view the path?

650


What does it mean when the linker says that _end is undefined?

626