Dangling Pointer Demo

Hard
2 views 24 Jan 2026
Return the address of the local variable in the function. Initialize it in the function. What's the problem? Then indicate the correct reason (dynamic allocation or static variable)....

Function Pointer Array

Hard
2 views 24 Jan 2026
Create array of different math functions (add, sub, mul, div) using function pointers. Make a call by selecting from the index. Menu-driven calculator....

Pointer vs Array Name

Hard
2 views 24 Jan 2026
Show the difference between an array and a pointer. The sizeof() operator, the increment operation, and assignment. Which operation is valid where?...

Linked List Basic

Medium
2 views 24 Jan 2026
Create a node structure (data, next pointer). Manually create and link five nodes. Then traverse through the pointers and print them. The foundation of a linked list....

Swap Using Pointers

Medium
3 views 24 Jan 2026
Create a generic swap function that accepts void pointers and can swap any datatype. Also take a size parameter. Use memcpy.
...

Pointer Array Sorter

Medium
2 views 24 Jan 2026
Create an array of pointers pointing to different strings. Sort the strings without moving the strings - just reorder the pointers....

Dynamic 2D Array

Medium
3 views 24 Jan 2026
Take rows and columns input from the user. Allocate the second array using malloc. Fill in the values, print them, then free the property. There should be no memory leaks....

String Manipulation Pointers

Easy
2 views 24 Jan 2026
Reverse the string using two pointers (start and end). In-place modification without extra array. Logic of character swapping....

Array Pointer Arithmetic

Easy
3 views 23 Jan 2026
Create an array and traverse it using pointers without bracket notation. Using only pointer increment/decrement. Both forward and backward directions...

Pointer Chain

Easy
2 views 23 Jan 2026
Create an integer variable. Create a pointer to it. Then create a pointer-to-pointer. Then create a triple pointer. Access and modify the original value from each level of the chain.
...