NUS CS1010 Lecture Notes for AY22/23 Semester 1
Intermediate C
Algorithms
Arrays, Pointers, Memory Management
Control Statements

8. Conditional Statements

9. Logical Expressions

10. Assertions

11. Loops

12. Invariant
Basic C
Preliminaries

1. Programming
What is a program? What is programming? What is CS1010 about?

2. Computational Problems
What is a computational problem? Express a stepbystep solution to a computational problem with a flowchart.

3. Functions
Write functions that solve simpler subproblems and then combine the functions to solve higherlevel and more complex problems.

4. Types
Each variable has a type that tell the machine how to turn a bit sequence into a meaningful value.