Are zero and null perfect synonyms?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
'null' is qualitative, representing the absence of quantity. Closer to the word 'void' than the number 'zero'. Example: he reduced it to nil.
'zero' is quantitative. Example: he got zero on his exam.
No, they are not the same.
In an everyday language context, 'null' can mean that something is meaningless, as in:
In a programming/data context (though I still think this is a language question, rather than a programming question), 'null' can mean the absence of information. If you are wondering how many apples there are, 'null' means 'I don't know'. 'Zero' means that you know that there aren't any apples.
Zero always refers to a quantity.
In programming some languages make null the same as zero (C++) but some don't (Java).
In databases a record might have a null value in one field or it might have a zero and these are not the same.
Zero is can be used to indicate a counted quantity whereas null cannot.
Is there a difference between a cheque(check) with $0.00 and a NULL(VOID) check?
The difference may be subtle, but there is a difference.
0 represents an integer in the set of all integers (called the set Z in mathematics) NULL is not an integer, and it could represent the absence of things that aren't even numbers.
A NULL and VOID Check for example.
A NULL Marriage.
A NULL Agreement
It's not just null and zero too. What about "nothing","naugt","none" etc.
Zero is usually a noun. Zero is a number. Zero can refer to the symbol "0".
Null is usually an adjective (Null set, Null argument, Null pointer, *a nullity). Null is a not a number, usually has a different symbol each time.
Programmers are forced to make these distinctions all the time (although, 'null' is often modelled as the number 0). Although it is important in programming, the distinction is more to do with logic and mathematics.
They do have quite different roles in language although I guess in a few cases they are the same.
The words have very different meanings.
In math, I can do an equation, such as subtract two numbers, and get zero. If I don't answer the question, it could be considered null. If the question were an elementary test, zero could be the correct answer, worth points, whereas not answering the question does not result in a correct answer.
So, one can indicate that a computation has been done, the other that it has not been done.
"Zero" is a number, an integer between -1 and 1. It is a physical quantity representing no countable number of an object.
"Null" is a concept of irrelevance or undefined state. For example, an agreement might become "null and void" when it is no longer applicable or enforceable, or a computer data structure pointer with no instantiation associated with it might be considered "null".
The confusion comes in the representation of a computer NULL in execution. Typically, the NULL is represented as a 0 in the memory or code. But that is just a convention. It's like saying "I am Spoxjox". Well, no, I am not Spoxjox. I am represented by the "name" or "tag" or "handle" of "Spoxjox", but I am a human being, not a sequence of letters on a discussion board. Similarly, the concept of NULL might be represented by a zero (0), but it is not the same as the number zero.
No. Zero is a number. Zero is also a place where a mathematical function achieves an output value of zero. Null has a wide variety of uses. Here are a few:
null set - a set devoid of elements
null contract - unenforceable contract
The Java computer language uses null as a "graveyard" object that holds no value
"Nula" is the word for "0" in Hungarian and other European languages.
"Null" means "void of legal force" ... that's essentially "invalid". It's an adjective, as has been mentioned.
I'm not a programmer, so maybe that's why I don't equate the two at all.
Compare "Are you Rachel?" with "Are you tired?"
protected by RegDwigнt♦ Oct 31 '12 at 9:50
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?