2077 9

CSC115 ยท 2077 ยท 1 marks

Define pointer. How do you return pointers from functions? Explain with example.

Define pointer. How do you return pointers from functions? Explain with example. [1]

C ProgrammingChapter 9: PointersFunction Returning pointers

A pointer is a variable that stores the memory address of another variable. Instead of holding a data value directly, it holds the location (address) where the data is stored in memory. Syntax: Example: int p; declares p as a pointer to an integer. --- A function can return a pointer by specifyin...