Skip to main content

Q1 — Basic Pointer

Print a variable’s value and address using a pointer.

Q2 — Swap Using Pointers

Swap two variables using pointers passed to a function.

Q3 — Sum of Array Using Pointer

Traverse an array using pointer arithmetic and find the sum.