List of Pointer Programming Exercises

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

List of pointer programming exercises

1. Write a C program to create, initialize and use pointers.

2. Write a C program to add two numbers using pointers.

3. Write a C program to swap two numbers using pointers.

4. Write a C program to input and print array elements using pointer.

5. Write a C program to copy one array to another using pointers.

6. Write a C program to swap two arrays using pointers.

7. Write a C program to reverse an array using pointers.

8. Write a C program to search an element in array using pointers.

9. Write a C program to access two dimensional array using pointers.

10. Write a C program to add two matrix using pointers.

11. Write a C program to multiply two matrix using pointers.

12. Write a C program to find length of string using pointers.

13. Write a C program to copy one string to another using pointers.

14. Write a C program to concatenate two strings using pointers.

15. Write a C program to compare two strings using pointers.

16. Write a C program to find reverse of a string using pointers.

17. Write a C program to sort array using pointers.

18. Write a C program to return multiple value from function using pointers.

You might also like