It's UWAweek 38 (2nd semester, week 8)

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 selected article
Showing 1 of 477 articles.
Currently 45 other people reading this forum.


 UWA week 33 (2nd semester, week 4) ↓
SVG not supported

Login to reply

👍?
helpful
5:10pm Wed 14th Aug, Joshua N.

ANONYMOUS wrote:
> For the question 12 > > void function(void) { > for (int i = 0; i < 5; ++i) { > switch (i % 3) { > case 0: > printf("%i ", i); > break; > case 1: > printf("%i ", i); > break; > } > } > printf("\n"); > } > The options for the output are: > A. 0 1 2 3 4 > B. 1 3 5 > C. 0 0 1 3 3 4 > D. 0 1 1 2 3 4 4 > > can u please confirm what will be the correct output? my output doesn't match the options. maybe I am wrong :)idk
You're right. I think there is a typo in the answer. None of the options are correct. However, there is one option that is very close to the correct answer. Can you see which one it is?

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  8:08AM Aug 25 2024
Privacy policy