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 36 other people reading this forum.


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported

Login to reply

👍?
helpful
4:31pm Mon 19th Aug, ANONYMOUS

Line A is valid; the syntax char array[N]; declares an array named "array" and allocates enough memory for N-many chars to be stored in the array, (see here).

There's definitely a syntax error in line C: there's no semicolon after i<N, so the compiler considers i<N ++i to be a whole expression, which is invalid.

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