+ 2
Is null and 0 are equal
4 odpowiedzi
+ 5
It depends upon the language. In complex languages like C++ and maybe JS, its a no. In SQL, PHP and CSS its usually yes.
In general terms they are the same.
Void also means zero, null or nothing. ("Not in programming")
+ 5
@Vrishal Prajapati that is true in all cases
+ 2
No,
null means the the variable has no value.
whereas 0 means that variable has value.
0
Even in SQL null is not 0 as null+1=null and 0+1=1.