0% found this document useful (0 votes)
105 views1 page

C Pointer Programming Exercises List

The document lists 18 pointer programming exercises for C including writing programs to add and swap numbers, input and print array elements, copy and swap arrays, reverse an array, search an array, access a 2D array, add and multiply matrices, find the length, copy, concatenate, and compare strings, find the reverse of a string, sort an array, and return multiple values from a function using pointers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
105 views1 page

C Pointer Programming Exercises List

The document lists 18 pointer programming exercises for C including writing programs to add and swap numbers, input and print array elements, copy and swap arrays, reverse an array, search an array, access a 2D array, add and multiply matrices, find the length, copy, concatenate, and compare strings, find the reverse of a string, sort an array, and return multiple values from a function using pointers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

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