1/4
Vocabulary flashcards based on Unit 2.9 and 2.12 lecture notes on C programming expressions and type conversion hierarchy.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Relational Expression truth value
The result of an expression like y=(x>y). In C, this always gives truth values; for example, if x=20 and y=30, the result is 0.
Logical Expression result (a=3,b=2,c=5,z=10)
For the expression x = (a > b) \, && \, (c > z), the result is 0 because both statements must be true for the total expression to be true, but the second expression truth value is false.
Implicit Type Conversion
A process where C automatically converts any intermediate values to the proper type so that the expression can be evaluated without losing any significance.
Conversion Hierarchy
The automatic order in C for promoting types: Long double→Double→Float→Unsigned long int→Long int→Unsigned int→int→char/short.
Truth Values in C
The values returned by relational and logical expressions, where 0 represents false and non-zero (typically 1) represents true.