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 are run-time errors?

606


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1466


Write a program to print factorial of given number using recursion?

607


What are the string functions? List some string functions available in c.

613


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

664






How many types of functions are there in c?

589


Can you mix old-style and new-style function syntax?

670


What is the heap in c?

647


Why do we need arrays in c?

593


List some basic data types in c?

567


Explain what is the concatenation operator?

634


What is the purpose of main( ) in c language?

630


Is it possible to have a function as a parameter in another function?

604


How can you access memory located at a certain address?

672


Why is c called a structured programming language?

689