If I omit the operators from statement, something like this: while(foo) will the compiler turn it in while(foo != NULL || *foo != '\0' || foo != 0) or while(!foo) or something like this?
how to it is really done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
while (condition)just checks forconditionbeing non-zero.Therefore these two are equivalent: