C Data Types Flashcards

1
Q

C Data type: _Bool

A

The _Bool data type is used to hold the values 0 and 1 which correspond to the values true and false with 0 being false and 1 being true

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

C Data type: short

A

The short data type is an integer data type that uses less storage

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

C Data type: long

A

The long data type is an integer type that uses more storage

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

C Data type: long long

A

long long is an integer type that more storage than long but, at a minimum must be 64-bits

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

What are constants

A

Constants are pieces of data that do not lose there value during program execution

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

What are integers

A

Positive or negative whole numbers, without a decimal point

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

C Data type: char

A

The char data type in an integer type that holds small number values, letters of the alphabet and symbols

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

C Data type: float

A

The float data type is a data type that holds a single-precision floating-point number

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

What are signed numbers

A

Numbers that include positive or negative values

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

Give all five C integer types that you can use to declare integer variables

A

char, short, int, long and long long

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

What are unsigned numbers

A

Numbers that include positive values only

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

What are floating-point numbers

A

Numbers with a decimal point

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

Give all five unsigned C integer types that you can use to declare unsigned integer variables

A

unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long

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

C Data type: int

A

The int data type is an integer type that will hold an integer value

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

C Data type: double

A

The double data type is a type that will hold a double precision floating-point number

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

What are the two boolean values

A

true and false

17
Q

What is a character constant

A

A single character contained between single quotes

18
Q

C Data type: size_t

A

The size_t data type is an implementation defined, unsigned integer type