0 votes
32 views
asked in C++ by (8.2k points)

1 Answer

0 votes
answered by

HI

  Always try to compare like 


if ( 0 == i ) 

rather than 

if ( i == 0) 

In this way you can catch error for unintended assignments like 

if ( 0 = i) 

Categories

...