We all know the difference between null
and zero
.
ZERO
"Zero" is a value. It is the unique, known quantity of zero, which is meaningful in arithmetic and other math.
Null
"Null" is a non-value. It is a "placeholder" for a data value that is not known or not specified. mathematical operations cannot be performed on null.
Then how it is possible that
[1, null+null] ---> [1,0]
[1, null+1] ---> [1,1]
So here null undertaking zero as the default value and doing arithmetic operations.Is there any reason behind this operation.