Lecture 1 - Page 13 : 29
Notes about C++
From C to C++
* Course Introduction
Overview of Advanced Programming - Part One
Overview of Advanced Programming - Part Two
Recommended use of your time
Course Approach - Part 1
Course Exam
Which compiler or IDE?
* A quick tour of C
Basic Observations
The Evolution of C
The Popularity of C and C++
The C preprocessor
Fundamental types
Arrays and Pointers
Arrays and Pointers: Examples
Structures and Unions
Structures: Examples
Function types
User defined types
Expressions and operators
Control structures
Functions and parameters
Call-by-reference parameters via pointers
C Program organization
Memory Allocation
The standard library
* C/C++ Compatibility
C/C++ Compatibility
C/C++ Compatibility - some small details
Fundamental types
The most fundamental types are numeric types
void
The no value type
Also used for
no parameters
,
void f(void)
, and for
generic pointer
,
void*
Integer types
int
,
long
and
short
,
signed
and
unsigned
The ranges depends on the implementation
Floating point types
float
and
double
,
long double
The ranges depends on the implementation
No boolean type in C89
Relies on certain conventions for use of numeric types as integer types
Character types
A
char
is a byte
Denoted with
single quotes
:
'A'
,
'a'
,
'\n'
,
'\141'
,
'\x61'
In reality small integers - signed or unsigned
Wide characters are also supported
Other fundamental types will be discussed on the following slides