In the Lecture 8 slides, it says that there is only ever a single process in the running state. Am I correct in saying that this is only the case when the computer has only one CPU with one core? Because if the CPU has multiple cores, then each core ...
ANONYMOUS wrote
A very good expanded definition of a 'word' in the context of computer architecture can be found on Wikipedia
https en.wikipedia.org wiki Word (computer architecture)
(Wikipedia receives a lot of undeserved criticism for being 'd...
Hi, I'm not really sure about some of the terminology used in the lecture today. The main one is a "word". I have done a little bit of reading and am still relatively unsure, if you could explain what specifically it is and what we use it for that wo...
In last Monday's lecture we saw both the sizeof() and strlen() functions when discussing arrays and, in particular, arrays of characters which we treated as strings. The two functions serve different roles and, so, shouldn't be confused....
ANONYMOUS wrote
Firstly, since the C99 standard (and hence in C11), main() must be a function returning an int , so you'll typically see
int main(void)
or
int main(int arc, char argv );
Within main() you can either retur...
Hello,
I was just wondering if there was a difference between declaring main as an int function and returning 0 on success, and declaring main as a void function and returning EXIT SUCCESS.
To my understanding, there is no difference, so is it just a...
ANONYMOUS wrote
Lecture slides ar available from our Schedule page https teaching.csse.uwa.edu.au units CITS2002 schedule.php
by clicking on the required lecture's name (link) or the PDF icon.
The first 4 are there already, with the coming week's be...
Hey Jinyoung
If I remember correctly floats are 4 bytes and doubles are 8 bytes (hence the name double) but Chris may need to clarify.
An integer value must be at least 2 bytes (or 16 bits) but it is usually 4 bytes (32 bits). It's a bit confusing ...
According to the slide 2, page 4 in Variables, the page says that "A typical C program will use 4 bytes to hold a single integer value, or 8 bytes to hold a single floating-point value."
It this correct?
Integer value has 2 or 4 bytes and a single floa...