Master the C Reference Card.
The final exam covers Chapters 1 to 15 and 17 of the textbook. The emphasis is on reading and writing short sections of C, similar to those you've done in the homework and the assignments.
The final exam will concentrate on the elements of C covered in the C-related homeworks and assignments.
Review the C topics mentioned in the Exam 1 review and the Exam 2 review.
Here are some additional C topics covered since Exam 2 that you should review.
.
member selection with object->
member selection with pointer&
|
~
<<
>>
Class | Example | Associativity |
---|---|---|
Postfix-like |
++ ,
-- ,
( ) function,
[ ] array,
. structure,
-> structure,
|
Right to left |
Unary prefix |
+ , - , ! , ~ ,
( ) cast,
sizeof , ++ , --
* , &
|
Left to right |
Multiplicative |
* , / , %
|
Left to right |
Binary additive |
+ , -
|
Left to right |
Shifts |
<< , >>
|
Left to right |
Comparative binary |
< , > ,
<= , >=
|
Left to right |
Equality binary |
== , !=
|
Left to right |
Logical and |
&&
|
Left to right |
Logical or |
||
|
Left to right |
bitwise and |
&
|
Left to right |
bitwise or |
|
|
Left to right |
Ternary conditional |
? :
|
Right to left |
Assignment operator |
= , =* , =/ , =% ,
=+ , =-
|
Right to left |
Comma (sequencing) |
,
|
Left to right |