Ch. 2.11: Determining the Size of a Data Type Flashcards

1
Q

How do you determine the size of an integer type?

A

Use the sizeof operator. E.g. cout &laquo_space;“The size of an integer is “ &laquo_space;sizeof(int);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly