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)....
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....
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?...
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....
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.
...
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....
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....
2 views
24 Jan 2026
Reverse the string using two pointers (start and end). In-place modification without extra array. Logic of character swapping....
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...
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.
...