PLEASE NOTE: the upgrades to this server, secure.csse.uwa.edu.au, have not yet been completed.
Hopefully the changes will be completed on THURSDAY 8th December.
Web-based programs, such as csmarks, cssubmit, and the help fora, will be unavailable at some time on Thursday 8th.
  It's UWAweek 49

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


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported

Login to reply

👍?
helpful
11:04am Tue 30th Aug, Cohen R.

I'm storing many of my values into int arrays but since there can also be * I don't know what value I should use to store them. I'm thinking of -1 or NULL but would be wondering if there would be an issue with either of these (convention or otherwise). I would love to know what value would be best or if it doesn't really matter. Thank you


SVG not supported

Login to reply

👍?
helpful
11:22am Tue 30th Aug, Christopher M.

"Cohen Rafiq" <23*4*9*[email protected]*u*e*t*u*a*e*u*a*> wrote:
> I'm storing many of my values into int arrays but since there can also be * I don't know what value I should use to store them. I'm thinking of -1 or NULL but would be wondering if there would be an issue with either of these (convention or otherwise). I would love to know what value would be best or if it doesn't really matter.
It doesn't matter, provided it's not a value that could be valid as a 'fixed' (non-*) value. But you wouldn't use NULL, because NULL represents a NULL-pointer and it's not an integer.

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