Wk. 4 Flashcards
1
Q
What does statically typed language mean?
A
As the compiler reads your code and translates it to binary, it has to know the data type.
2
Q
What is the syntax for a do/while loop?
A
do { [prog st] } while (boolean expression)
3
Q
When are global variables allocated?
A
At compile time
4
Q
Where are global variables allocated?
A
The data section in memory
5
Q
How do the increment/decrement forms differ?
A
In ++x (prefix) the variable is modified, then used in the expression. In x++ (postfix), first the variable is used in the expression, then it is modified