Lect02b Overview of C Programming-2
Lect02b Overview of C Programming-2
sg/~cs2100/
Lecture #2b
Overview of C Programming
Questions?
IMPORTANT: DO NOT SCAN THE QR CODE IN THE
VIDEO RECORDINGS. THEY NO LONGER WORK
Ask at
https://sets.netlify.app/module/676ca3a07d7f5ffc1741dc65
OR
Preprocessor
Preprocessor
Preprocessor
Preprocessor
Preprocessor
Preprocessor
Preprocessor
Preprocessor
Preprocessor
Python
expr++, expr--, ++expr, --expr
are not available
Lecture #2: Overview of C Programming 12
Preprocessor
a = 10%4 a = 2
b = -10%4 b = 2
C % is remainder
a = 10%4 a = 2
b = -10%4 b = -2
NOTE: be careful with negative values for % operation
Quiz
• Please complete the “CS2100 C Programming Quiz 1” in
Canvas.
• Access via the “Quizzes” tool in the left toolbar and select the quiz
on the right side of the screen.
Lecture #3: Data Representation and Number Systems 15
End of File