This is the definition of a method in the class Stack. It is supposed to push a new node in the stack (which is represented as a linked list).Why is this logically wrong although it is error free??
Code:Error_code Stack :: push_stack( Stack_entry item) { Node new_top(item,top_node); top_node=&new_top; Return success; } thank you :)