Week 1 - 1 PDF
Week 1 - 1 PDF
programming basics
- OVERVIEW:
UNDERSTANDING PROGRAMMING:
- WHAT IS PROGRAMMING?
INTRODUCTION TO C:
- WHAT IS C?
- WHY LEARN C?
main function
return statement
a typical C program.
- OUTPUTTING STRINGS:
format specifier/
placeholder
output
- ESCAPE SEQUENCES:
1. Parentheses `()`
2. Multiplication `*`, Division `/`, Modulo `%`
3. Addition `+`, Subtraction `-`
- INITIALIZATION OF VARIABLES:
The first line is the declaration of the variable, while the second
line is the initialization. This same initialization could be
achieved in one line, by writing “int x = 7;”, and this is more
useful when using a single variable. However, when creating large
programs or software which may need a plethora of variables, it is
more useful to first declare the variables in one line, then
initialize it in a separate one.
IMPORTANCE OF PRACTICE:
CONCLUSION:
arithmetic operations
and conditionals