Name: ____________________________________________________ Alpha: _____________________
Describe help received: _________________________________________________________________
int n = 5; double x = 1.5; char c = 10*n + 2;
| expression | type | value |
n + x | ||
n/2 | ||
n = x | ||
c | ||
int(c) |
cout << (3.5*5)/4 results in
4.375 being printed to the screen, but
cout << 3.5*(5/4) results in
3.5 being printed to the screen.
00101011. If we interpret that byte as a
char, what character does it represent? If
we interpret that byte as a bool, what
boolean value does it represent? Explain your answers!
Input a 3-letter word in lowercase letters: cat With leading letter capitalized this is : CatHint look at the ASCII table and think about how to go from the ASCII value of a lowercase letter to the ASCII value of the same letter in uppercase.