Be sure to know:
- the main parts of the program:
main(){}#include
- how to get values into and out of a program:
printfand its conversion specifiersscanfand its conversion specifiers
- variables and types
intfloatchardouble
- boolean expressions
>>=<<===!=
if/elsewhileloop- arithmetic operators
+-*/%++--
- type casting
(int)(float)(double)(char)
- how to read and understand code
- you should be able to read a C program or snippets of C code and understand what the outputs should be (with given inputs)
- you should understand the intent of the program
- you should know how to trace the values of variables and output generated by a program
- how to write a program that solves a problem in an area you are not familiar
- involves translating a problem into inputs and outputs
- involves using critical thinking to come up with an algorithm to solve a problem
- involves translating an algorithm into code
- examples:
- Trader Problem: if you have not completed the lab before the exam, be sure to be able to complete a problem similar in complexity to Trader
- previous exam problems