Solution 35:
This error occurs when we declare a pointer and then use it before allocating
memory for it.
This error may also occur when we use a wild pointer. The wild pointer
references the base area of the data segment. Memory or stack corruption may cause this
error.
Example
36: Can main( ) be called recursively?
Solution 36:
Yes, main( ) can be called recursively.
Example
37: A stack is a data structure in which only the topmost element can be accessed. You
can push an element and delete an element from a stack, named push and pop, respectively.
Stacks work on the LIFO principle (Last-In-First-Out). Implement a stack in C. Write two
Do'stlaringiz bilan baham: