fork download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int loopCounter = 0;
  6. for (uint8_t x = 16; x >= 16; x++)
  7. {
  8. loopCounter++;
  9. }
  10. printf("loopCounter = %d\n", loopCounter);
  11.  
  12.  
  13. uint8_t x = 266;
  14. printf("x set to 266, but is equal to %hhu\n", x);
  15. for (; x >= 266; x++)
  16. {
  17. printf("so this message will never be printed\n");
  18. }
  19.  
  20. return 0;
  21. }
Success #stdin #stdout 0s 4820KB
stdin
Standard input is empty
stdout
loopCounter = 240
x set to 266, but is equal to 10