[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.3678990 [View]
File: 124 KB, 200x468, bar-loli.png [View same] [iqdb] [saucenao] [google]
[ERROR]

>>3678945
Actually, they are different in that they loop infinitly for a different reason. The first loops because spinning_rainbow_orb==1. The second loops because (signed int) 1 was successfully assigned to spinning_rainbow_orb. In cpp, if spinning_rainbow_orb happened to be an instance of a class with an overloaded assignment and/or equivalence operator, this difference could lead to unexpected behavior that could be difficult to recognize. while(true);

Navigation
View posts[+24][+48][+96]