0 10

BIT102 ยท 0 ยท 5 marks

Describe the concept of pointer and its arithmetic with suitable examples.

Describe the concept of pointer and its arithmetic with suitable examples. [5]

C ProgrammingChapter 8: Pointers and Dynamic MemoryPointer concept and declaration

A pointer is a variable that stores the memory address of another variable rather than storing a data value directly. Declaration Syntax: Example: - &x gives the address of variable x - ptr gives the value at the address stored in ptr (dereferencing) --- Operator Name Meaning --------------------...