Self Assessment: Part 1
Convince yourself that you fully understand the following terms, concepts, and processes, including how to use all these to successfully write a C program on your own:
- Computers
- What is a computer?
- What is a computer program?
- What does a computer do when it executes a computer program?
- Instruction set
- Compiler
- What a compiler does
- C Programs: The mechanical aspects
How to create a C program
- How to compile a C program
- How to read and interpret error messages
- How to change your program to correct errors
- How to execute a C program
- How to include the Math library during compilation
- How to give a name to the executable file during compilation
- C Programming: Declarations
- What is a declaration
- What does it do
- The syntax of declaring variables, i.e. precisely how do you declare a variable in a C program
- Naming conventions and legal names for variables
- C Programming: Basic data types
- int, float, double
- What they represent and what is their appropriate use
- How many bytes does each one require and why should one care
- Variable use
- The difference between the value of a variable and the address of a variable
- The difference between variableName and &variableName
- Input
- Precisely how to use scanf to get user input
- Expressions
- How to write expressions in C
- Arithmetic operators and precedence rules
- Using functions defined in libraries, for instance, functions such as sin, cos, acos defined in the Math library.
- The assignment operator =. What does it do and how it is used in an expression
- Output
- Precisely how to use printf to produce output