Some topics you might want to study for the exam.
- Commands for compiling (c11 or gcc, -Wall, -o)
- Comments
- Return types of functions
- Location of function definitions
- What is a global variable?
- Variable declaration and naming rules
- Printf, Scanf
- Best kind of loop for a task
- Continue and Break used in a loop
- Switch statements
- Shorthand increment: +=, -=, *=, ++, --, pre and post, used in printf
- Modulus (%)
- Comparison and boolean operators in conditionals, symbols and precedence
- Evaluating expressions containing ints and floats, int division stored in float
- Comparing ints to chars/floats
- Defining an array
- Pass by value vs pass by reference
- Includes needed for different C functions
- Strings: strcpy, strlen, strcmp, strcat, sizeof, null character, initialization
- File I/O: fopen, fclose, stdin, stdout, stderr