C pointer examples
C Programs - Pointer
Practice C programs based on pointers, memory addresses, arrays, strings, swapping, sorting, and pointer-based functions.
Topic library
15
practice programs
Topic overview
Pointers in C are variables that store the memory addresses of other variables. They allow direct access to data and are essential for many advanced programming tasks.
To declare a pointer variable, use the asterisk * symbol before the variable name. Pointer practice helps you understand arrays, strings, swapping, dynamic memory, and efficient data structures.

Practice list
Pointer programs in C
- 1C Program to use pointers
- 2C program to add two numbers using pointers
- 3C program to swap two numbers using pointers
- 4C program to input and print array elements using pointers
- 5C program to copy one array to another using pointers
- 6C program to swap two arrays using pointers
- 7C program to reverse an array using pointers
- 8C program to search an element in array using pointers
- 9C program to find length of string using pointers
- 10C program to copy one string to another using pointers
- 11C program to concatenate two strings using pointers
- 12C program to compare two strings using pointers
- 13C program to reverse a string using pointers
- 14C program to sort an array using pointers
- 15C Program to Return Multiple Values from a function