What is the allocated size of a bool array with size 50?
Select one:
a. 100 bits
b. 500 bits
c. 50 bits
d. 1 bit
Answers
Answered by
4
Hii dear!!
Your Answer is :- 1 bit.
i hope help you
Your Answer is :- 1 bit.
i hope help you
Answered by
4
Option(c) is the correct answer to the given question.
Explanation:
- The bool datatype is used for storing the boolean value this datatype is used for the value of the true and false .
- As in the given question the size of the array is 50 also the size of bool is 1 bit there allocated size of the given array can be determined by the formula that is mention below .
- Allocated sizesize of bool * total size
=1*50
=50 bits
Learn More :
- brainly.in/question/7625435
Similar questions