The same codes works fine with any other ide but not showing any output on the platform.Please check and if there is any error please let me know
workign fine on
Question not submitting on the platform
@piyush.bansal8158625
Initialise head to NULL.
node * head = NULL ;
This is the reason why your code worked on the other compiler and not on CB IDE. DIfferent compilers may initialise some variables to their default value on their own , while some do not. Hence as a general rule , you should never leave a variable uninitialised .
Thanks a lot. It also solved my many problems also.