0% found this document useful (0 votes)
6 views5 pages

C_Pointer_Programming_100_Questions (1)

The document contains a list of 107 programming tasks focused on the use of pointers in C. These tasks cover a wide range of topics including string manipulation, dynamic memory allocation, data structures like linked lists and trees, and various sorting algorithms. Each task is designed to enhance understanding and practical skills related to pointers in C programming.

Uploaded by

Prashanth Vpc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views5 pages

C_Pointer_Programming_100_Questions (1)

The document contains a list of 107 programming tasks focused on the use of pointers in C. These tasks cover a wide range of topics including string manipulation, dynamic memory allocation, data structures like linked lists and trees, and various sorting algorithms. Each task is designed to enhance understanding and practical skills related to pointers in C programming.

Uploaded by

Prashanth Vpc
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

C Programming - 100 Pointer Questions

1. Swap two variables using pointers.

2. Find the length of a string using pointers.

3. Reverse a string using pointers.

4. Count vowels in a string using pointers.

5. Copy one string to another using pointers.

6. Access array elements using pointers.

7. Implement dynamic memory allocation using malloc.

8. Create a pointer to a structure and access its members.

9. Find the maximum number in an array using pointers.

10. Implement pointer arithmetic to navigate through an array.

11. Write a function that accepts a pointer to an integer and increments its value.

12. Demonstrate a double pointer and how to access its value.

13. Write a program to input and output using pointer variables.

14. Implement a function to sort an array using pointer notation.

15. Write a C program to find the sum of an array using pointers.

16. Create a 2D array using dynamic memory allocation (pointer to pointer).

17. Demonstrate pointer to function with a simple callback example.

18. Write a C program to allocate memory for n integers using calloc.

19. Write a C program to reallocate memory using realloc.

20. Free dynamically allocated memory and prevent memory leaks.

21. Implement a basic stack using pointers and dynamic memory.

22. Write a C program to simulate a queue using pointers.

23. Reverse a singly linked list using pointers.

24. Insert a node at the beginning of a linked list using pointers.

25. Delete a node from a linked list using pointers.


26. Demonstrate the difference between pointer to int and array of int.

27. Write a C program to demonstrate wild pointers.

28. Write a C program to demonstrate dangling pointers.

29. Write a C program to demonstrate NULL pointers.

30. Implement a simple binary tree using pointers.

31. Find the height of a binary tree using recursion and pointers.

32. Traverse a binary tree using pointers (inorder, preorder, postorder).

33. Write a program to return pointer from a function.

34. Swap two pointers using pointers to pointers.

35. Write a function to return the maximum of two values using pointers.

36. Implement selection sort using pointers.

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

38. Write a program to find the median of an array using pointers.

39. Reverse an array in place using pointers.

40. Demonstrate array of pointers with example.

41. Create an array of strings using pointers.

42. Implement a menu-driven program using pointer to function.

43. Use pointers to fill a 2D array.

44. Pass a pointer to a function and modify original value.

45. Write a program to access elements of an array using pointer notation.

46. Explain pointer to constant vs constant pointer with code.

47. Demonstrate pointer to pointer with a real example.

48. Use pointers to calculate factorial using recursion.

49. Simulate matrix addition using dynamic memory allocation.

50. Simulate matrix multiplication using pointers.

51. Create a pointer to an array of 5 integers.

52. Demonstrate function returning pointer to static variable.


53. Write a C program to differentiate between local and global pointer.

54. Use pointers to convert lowercase string to uppercase.

55. Implement strstr() function using pointers.

56. Find first repeating character in a string using pointers.

57. Find frequency of characters using pointer techniques.

58. Remove duplicates in a string using pointers.

59. Check if two strings are anagrams using pointers.

60. Rotate elements of an array using pointers.

61. Implement merge sort using pointers.

62. Implement quick sort using pointers.

63. Reverse words in a sentence using pointers.

64. Use pointer arithmetic to access 3D array.

65. Use pointer to constant structure and explain.

66. Write your own strlen() function using pointers.

67. Demonstrate memory allocation failure case.

68. Use pointer to access command-line arguments.

69. Write a macro to swap using pointers.

70. Use pointer in a C union and access value.

71. Implement circular linked list with pointers.

72. Write a program to simulate memory leak.

73. Detect and fix memory leak using pointers.

74. Write code to check alignment of pointer.

75. Simulate virtual function using function pointer.

76. Create an array of function pointers.

77. Implement bubble sort using pointers.

78. Create nested structure and access using pointers.

79. Create custom string compare using pointers.


80. Copy data from one array to another using pointers.

81. Pass multidimensional array to function using pointer.

82. Check if two arrays are equal using pointers.

83. Find intersection of two arrays using pointers.

84. Find union of two arrays using pointers.

85. Flatten a 2D array using pointers.

86. Transpose a matrix using pointers.

87. Create pointer to array of structures.

88. Implement doubly linked list using pointers.

89. Write program to delete entire linked list using pointers.

90. Sort linked list using bubble sort with pointers.

91. Create graph using adjacency list and pointers.

92. Implement DFS traversal using pointers.

93. Implement BFS traversal using pointers.

94. Use pointer to return multiple values from function.

95. Write C program for circular buffer using pointers.

96. Design hash table using array of pointers.

97. Write memory-safe pointer operations.

98. Create wrapper functions for malloc/free.

99. Use pointer arithmetic for string reverse.

100. Reverse stack using pointers.

101. Swap nodes in linked list without swapping data.

102. Write pointer-based binary search.

103. Use pointers to handle sparse matrix.

104. Detect loop in linked list using pointers.

105. Find middle of linked list using pointers.

106. Sort array of pointers to strings.


107. Implement shell sort using pointers.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy