Differentiate between array and pointer?

      

Differentiate between array and pointer?

  

Answers


caroline
Array
1.Array allocates space automatically
2.It cannot
be resized
3.It cannot be reassigned
4.size of (arrayname) gives the number of bytes occupied by the array.

Pointer
1.Explicitly assigned to point to an allocated space.
2.It can be sized using realloc()
3.pointer can be reassigned.
4.sizeof (p) returns the number of bytes used to store the pointer variable p.
carol1 answered the question on April 13, 2018 at 15:36


Next: Illustrate how to calculate current Assets turnover
Previous: Write a program to interchange 2 variables without using the third one.

View More Computer Science Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions