Lecture 1 Objectives
At the end of today's class you should
KNOW:
- The basic structure of a C program
- How to do input and output in a C program,
using scanf and printf
- How the assignment operator ( = ) works, and how assignment
affects memory
- The precedence of arithmetic operators in C
- How to compile, link, and execute a C program on a Linux system
BE ABLE TO:
- Use scanf and printf to do numeric input and
numeric and string output
- Evaluate C arithmetic expressions
- Develop a complete C program and execute it on the Linux platform
Sample Exam Question:
State the order of evaluation of the operators in the following C
statement and show the value of x after the statement is performed:
x = 2 % 2 + 2 * 2 - 2 / 2;