2080 11

C Programming20805 marksSimilarity between arrays and pointers

What is pointer? Explain the similarity between array and pointer in brief.

What is pointer? Explain the similarity between array and pointer in brief. [5]

A pointer is a variable that stores the memory address of another variable rather than storing a direct value. It "points to" the location in memory where data is stored. Syntax: Example: Here, &a gives the address of a, and p (dereferencing) gives the value stored at that address, i.e., 10. --- ...

Up nextWrite short notes on: a) Macro Write short notes on: b) Opening and closing file [2.5+2.5]