in this we always get null at the end or before
while(ptr!=NULL)
We get null at the end of our input i.e. when our entire input is exhausted.
in this we always get null at the end or before
We get null at the end of our input i.e. when our entire input is exhausted.