4 ms·
Thanks for your clever comment and for those emitting similar concerns. You surely are right. I wanted to give a quick example, turns out it was a bad one. Nex
by vhf 14y ago
Thanks for your clever comment and for those emitting similar concerns.
You surely are right. I wanted to give a quick example, turns out it was a bad one. Next time I'll write :
int i = 0;
printf("%i", i++); // prints 0
printf("%i", ++i); // prints 2
- hythloday 14y agoturns out it was a bad one Given that you were making a point on an article about the complexity of C, I'd say it was an unintentionally excellent example.
- sirclueless 14y agoIf you really want to make your brain hurt, there was an article on HN a while ago about the following statement: i = i++; Evaluating that expression takes a real dive into the guts of the C spec.