About null?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

About null??

2nd May 2018, 4:59 AM
gowri
gowri - avatar
4 Answers
+ 5
"When a variable has no value, it considered to be null. Having a null value is different than having a value of 0, since 0 is an actual value. However, when used in a boolean test, both null and zero result in a FALSE value. Programmers often use boolean tests to determine whether a variable has been given a value or not." [Source: the open net --> https://techterms.com/definition/null] https://www.sololearn.com/discuss/1188145/?ref=app https://www.sololearn.com/discuss/1101931/?ref=app https://www.sololearn.com/discuss/345807/?ref=app https://www.sololearn.com/discuss/888003/?ref=app https://www.sololearn.com/discuss/740566/?ref=app
2nd May 2018, 5:18 AM
Rahul George
Rahul George - avatar
+ 6
When a variable has no value, it considered to be null. Having a null value is different than having a value of 0, since 0 is an actual value. However, when used in a boolean test, both null and zero result in a FALSE value. Programmers often use boolean tests to determine whether a variable has been given a value or not.
2nd May 2018, 5:15 AM
Sudarshan Rai
Sudarshan Rai - avatar
0
not zero 😉
2nd May 2018, 7:50 AM
MeHdi KimouChe
MeHdi KimouChe - avatar
0
In c, c++ NULL is a built in constant and pointer as well which point nothing...!!!
3rd May 2018, 6:49 PM
Prasanta Roy Choudhury
Prasanta Roy Choudhury - avatar