2074 9

CSC115 ยท 2074 ยท 5 marks

Define pointer. Discuss the relationship between pointer and one-dimensional array. [1.5+3.5]

Define pointer. Discuss the relationship between pointer and one-dimensional array. [1.5+3.5]

C ProgrammingChapter 9: PointersPointers and Arrays

--- A pointer is a variable that stores the memory address of another variable. Instead of holding a data value directly, a pointer holds the address where that data is stored in memory. Syntax: Example: Here, ptr is a pointer to an integer. The operator & gives the address of a variable, and the...