adplus-dvertising
frame-decoration

Question

Is bool a fundamental datatype in C++?

a.

Yes

b.

No, it is a typedef of unsigned char

c.

No, it is an enum of {false, true}

d.

No, it is expanded from macros

Answer: (a).Yes

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Is bool a fundamental datatype in C++?

Similar Questions

Discover Related MCQs

Q. Find the odd one out:

Q. What is the value of the bool?
bool is_int(789.54)

Q. What happens when a null pointer is converted into bool?

Q. Which of the following statements are false ?

Q. For what values of the expression is an if-statement block not executed?

Q. Which of the two operators ++ and — work for the bool datatype in C++?

Q. Evaluate the following
(false && true) || false || true

Q. How many characters are specified in the ASCII scheme?

Q. Select the right option.

Given the variables p, q are of char type and r, s, t are of int type
1. t = (r * s) / (r + s);
2. t = (p * q) / (r + s);

Q. Which of the following belongs to the set of character types?

Q. How do we represent a wide character of the form wchar_t?

Q. In C++, what is the sign of character data type by default?

Q. Is the size of character literals different in C and C++?

Q. Suppose in a hypothetical machine, the size of char is 32 bits. What would sizeof(char) return?

Q. What constant defined in <climits> header returns the number of bits in a char?

Q. The size_t integer type in C++ is?

Q. Which of these expressions will return true if the input integer v is a power of two?

Q. Which of these expressions will make the rightmost set bit zero in an input integer x?

Q. Which of these expressions will isolate the rightmost set bit?

Q. 0946, 786427373824, ‘x’ and 0X2f are _____ _____ ____ and _____ literals respectively.