What is the real difference between arrays and pointers?

Answer Posted / rag

ARRAYS are allocated at compile time.
POINTERS are alocated at run time.
USE POINTERS FOR PROGRAM EFFICIENCY,BECAUSE MEMORY IS
PRECIOUS ONE. So to reduce memory use pointers.

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what happens if you free a pointer twice?

615


ATM machine and railway reservation class/object diagram

4807


Why is a semicolon (;) put at the end of every program statement?

630


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1500


List the different types of c tokens?

629






Is c pass by value or reference?

600


What is the role of && operator in a program code?

573


Where local variables are stored in c?

558


Why can arithmetic operations not be performed on void pointers?

594


Explain the use of bit fieild.

717


in iso what are the common technological language?

1639


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

660


What are directives in c?

550


What is array of structure in c?

603


Is array name a pointer?

608