Https://ide.codingblocks.com/s/42815

https://ide.codingblocks.com/s/42815
sir … i was just asking , in this code i passed a stack to a print function…so it is pass by value??

yes. For pass by reference you can see this
http://www.cplusplus.com/forum/beginner/47794/

1 Like