Overview of C Programming Flashcards

1
Q

How many bits are required to represent M values?

A

ceiling(log2(m))

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

What are the basic data types in C?

A

char, int, float, double

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

What is the advantage of greater word size?

A

More efficient

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

What happens if you don’t put ‘break’ for the cases in switch statements?

A

It will keep evaluating all the cases below the satisfied case

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