It's UWAweek 48

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

Displaying the 2 articles in this topic
Showing 2 of 919 articles.
Currently 2 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
3:55pm Wed 14th Sep, ANONYMOUS

Hello, I was wondering, is there a limit to how many times a for loop can iterate? If I was to have a loop with over 40000 times, would that pose certain issues?


SVG not supported

Login to reply

👍x1
helpful
3:59pm Wed 14th Sep, Christopher M.

The loop
#include <stdint.h>

  for(uint64_t i=0 ; i<UINT64_MAX ; ++i) {
   ...
  }
will loop 18,446,744,073,709,551,615 times, but I won't be waiting for it.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  1:17AM Sep 14 2022
Privacy policy