Binary Units | evaluating expressions | relational operators | Vocab (Malik ch 3) |
---|---|---|---|
What is a 0 or 1
The amount of space a bit holds
|
23
3*7-6+2*5/4+6
|
0
x = 3, y = 4, z = 7, w = 1;
cout<<(x ==y); |
function call
When main (or another function) activates a function by saying its name
|
What is 8 bits
The amount of space a byte holds
|
15
17+5%2-3
|
1
x = 3, y = 4, z = 7, w = 1;
cout<<(x !=z); |
argument
a number passed by main (or another calling function) to a function when it's called; the "5" in cupcake(5).
|
What is 2^10, or about thousand bytes
The amount of space a kilobyte holds
|
0
18/3*2%2
|
1
x = 3, y = 4, z = 7, w = 1;
cout<<(y==z - 3); |
parameters
This part of the function definition accepts values passed to a function; the "int x" in void cupcake (int x);
|
What is 2^20, or about a million bytes
The amount of space a megabyte holds
|
2
(6+5)%5*2
|
1
x = 3, y = 4, z = 7, w = 1;
cout<<(z>w); |
member access operator
The name for "."
|
What is 2^30, or about a billion bytes
The amount of space a gigabyte holds
|
28
2*(4%5*4)-8/2+6%2
|
0
x = 3, y = 4, z = 7, w = 1;
cout<<(x+y |
stream extraction operator
The name for ">>"
|