1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
The syntax for a type cast operation in C is(Note: the angled brackets are not to be taken literally, they indicate what would be used in the code...)
(
In C, a short int
is at least two bytes in size.
The most appropriate operator to use to set target bits in a byte is
the bitwise OR.
The most appropriate operator to use to flip target bits in a byte is
the bitwise XOR.
The most appropriate operator to use to clear target bits in a byte is
the bitwise AND.
if you need to flip a bit's current state, you should use
the XOR operator.
To specify a literal floating point value as being type double,
no suffix is required.
When applying the bitwise AND on two bits, the only way to get a unique result is if
both bits are set.
If you perform a right shift on a signed positive int
You'll get zeros pushed into the MSBs.
If you perform a right shift on an unsigned int
you'll get zeros pushed into the MSBs.
If you perform a right shift on a signed negative int
the result depends on the compiler.
If you shift a 32-bit integer to the left by 32 positions,
the result is zero.
If you perform a left shift of one position on a signed positive int
you'll effectively multiply the value by two.
If a larger type is assigned to a smaller type,
there may be a loss of data.
An arithmetic type conversion occurs automatically
with expressions of mixed types.
In an assignment type conversion,
the rvalue is temporarily converted to the lvalue's type
In an arithmetic type conversion,
the smaller types are all converted to the largest type.
(also known as "promotion")
To convert a binary set of bits into a hexadecimal value,
each group of four bits should be expressed with a single hexadecimal digit.
If you pass a smaller-type argument to a larger-type parameter, there is no risk in loss of data. T/F
True
The getchar function returns an int because
it allows the caller to test for EOF.