sir, i typed the same code as in the videos but I am getting runtime error always
sir, please check
sir, i typed the same code as in the videos but I am getting runtime error always
sir, please check
yes sir it worked now,but sir what is the difference
@pankajsingh
consider below syntax
if(condition1 and condition2 and conditon3){
some statements
}
here conditions will get checked from left to right i.e first condition1 ,then conditon2 and then condtion3.
if any of the conditions get violeted then conditions next to it will not be checked and if statement will not execute.
in ur case
we first want to check fast!=NULL and then fast->next!=NULL that way we keep in that order
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.