Https://ide.codingblocks.com/#/s/19172

https://ide.codingblocks.com/#/s/19172
why do i encounter a runtime error??? can u spot the mistake?

pass root by reference in the insert bst
it will not give run time

thank u…bhaiya…it’s working …but i would like to know why is it working…since it was working fine when prateek bhaiya wrote it. is pass by value wrong here??

then some changes will have to make in code when to pass by value,then it will work

1 Like