yes the function is called but i think there is some problem......
i wrote an output statement and that was shown to the console but the rest of the function does not
b is a pointer which points to... nothing. Dereferencing it results in undefined behavior, and that is what you are experiencing. You can't store something in some place that doesn't exist.
thanks bro
can you plz tell me about shared_pointers in c++
actually i'm making a stack class and i made it using pointers and it works fine for me ...
but now i want to make this via shares_ptr to get rid of possible memory leaks
plzzzz guys help me .....