+ 3

C Language doesn't have a boolean data type. Why..?

23rd Jul 2019, 10:59 AM
MADHU KUMAR KOULAS
MADHU KUMAR KOULAS - avatar
5 odpowiedzi
+ 5
In c like in assembly at first the data type indicate the size of the variable not the usage of the variable. Boolean was introduced next in a separate library. That's why.
23rd Jul 2019, 2:24 PM
Boris
Boris - avatar
+ 5
This problem was identified and added to c++ later.
23rd Jul 2019, 3:08 PM
Manoj
Manoj - avatar
+ 5
That is C XD. Don't forget that you can use integers 0 and 1 instead that. 1 - true 0 - false
24th Jul 2019, 3:59 PM
Baltazarus
Baltazarus - avatar
+ 1
Because integers can be used.
24th Jul 2019, 4:06 AM
Sonic
Sonic - avatar
+ 1
It has. Just try to give the question that has 2 possible answers. Use bool
26th Jul 2019, 2:31 AM
KUNDA C N V K RAMA KRISHNA TEJA
KUNDA C N V K RAMA KRISHNA TEJA - avatar