Category : for-loop

As a programmer I faced the following problem many times and never was able to solve it, suppose I have: bool is_succeeded; while ((is_succeeded=my_fun())) { if (!is_succeeded) { //really long code } } This will bypass the initial check (if my_func failed at first time and won’t call the //really long code part). A possible ..

Read more