Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
If you declare a variable as “bool?”, how many values will it have
Posted
Comments
Smithers-Jones 8-Nov-11 4:39am    
Seriously???

A bool will be true or false.
 
Share this answer
 
It will have only 2 values either True or False
 
Share this answer
 
Only two values
True or False
 
Share this answer
 
Any variable will have one and only one value at a given time even if it is an array or an object. The value of an array variable is the reference to that array and the same holds true for objects and of course value types.

What you most probably were aiming at is the domain of the boolean type. This is of course "true" and "false".

Cheers!

—MRB
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900