What is default value of boolean and string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is default value of boolean and string?

5th Feb 2017, 8:06 AM
Hariprasath R
2 Answers
+ 1
0 and "\0" on C++
5th Feb 2017, 11:16 AM
SUPER_S
SUPER_S - avatar
0
in C, 0 is for false and any non zero value is true like -1, 4
7th Dec 2017, 7:51 PM
Mohamed Gadaphy Nkwenkwat
Mohamed Gadaphy Nkwenkwat - avatar