It's UWAweek 47

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 828 articles.
Currently 94 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful
9:36am Fri 6th Sep, Etienne VH.

I don't understand why the answer to question 20 was D, rather than C, is anyone able to explain?

Thank you :)

(20) Consider the following C code: * void function(void) { fork(); fork(); printf("hello world\n"); } * If the above code executes successfully, which of the following statements will always be true? A. The output "hello world" will be printed once. B. The output "hello world" will appear exactly twice, on two separate lines. C. The output "hello world" will appear exactly four times, on four separate lines. D. The form of the output cannot be determined from the above code.

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