Part 1 - Introduction Flashcards
What are the 6 phases of developing a program in C++?
1) Edit
2) Preprocess
3) Compile
4) Link
5) Load
6) Execute
What is a member function?
A method of a class
When is a default no argument constructor generated?
If we do not provide our own constructor for the class
How many bits does a char have?
8
How many bits does a short have?
16
How many bits does a long have?
32
How many bits does an int have?
Usually 32
How many bits does a long long have?
64
How many bits does a float have?
32
How many bits does a double have?
64
How many bits does a long double have?
128
What 3 areas are data stored in during execution?
static area
stack
heap
What is the static area used for?
Storing items whose lifetime is the duration of the program
What is the stack used for (wrt data storage)?
Local variables in functions, whose lifetime is the invocation of a function
What is the heap area used for?
Dynamic items whose lifetime is controlled by the programmer