About 50 results
Open links in new tab
  1. How can I explain the difference between NULL and zero?

    Feb 14, 2012 · What null means depends on how the the data is interpreted: Null data may mean "not yet provided", and a program will wait a while before checking the value again.

  2. What does it mean to do a "null check" in C or C++?

    That means returning a (pointer - or even better, reference to an) empty array or list instead of null, or returning an empty string ("") instead of null, or even the string "0" (or something …

  3. Is it better to return NULL or empty values from …

    I am looking for a recommendation here. I am struggling with whether it is better to return NULL or an empty value from a method when the return value is not present or cannot be determined. …

  4. SQL: empty string vs NULL value - Software Engineering Stack …

    With NULL it's guaranteed empty on the first sight. I usually don't distinguish the values in the application, because it's unexpected and weird that NULL and empty string would mean …

  5. web api - Use empty string, null or remove empty property in API ...

    Mar 8, 2017 · So, if the code that produces request/response doesn't use null, my guess is the code on the other side of the API won't be forced to use null too. I rather like the idea of using …

  6. javascript - What is the original reason JSON used `null` and not ...

    Feb 3, 2019 · And in these other languages, means "this thing is empty" while means "what are you even talking about?" and actually throws an exception when you try to access that field. …

  7. Are C strings always null terminated, or does it depend on the …

    Mar 21, 2017 · Therefore, while C strings are null-terminated, they aren't terminated by NULL, but by NUL (usually written '\0'). Code which explicitly uses NULL as a string terminator will work …

  8. language design - Software Engineering Stack Exchange

    May 27, 2020 · There is a major difference between those two: NULL references are a language feature whereas Option is a library type. Everybody can write a library type, but only the …

  9. c - Are there reasons to assign NULL instead of 0 to non-pointer ...

    Feb 24, 2016 · In other words, the definition means null pointer contsant is essentially a macro that expands to "An integer constant expression with the value 0, or such an expression cast …

  10. Should one check for null if he does not expect null?

    IMHO trying to handle null values that you don't expect leads to overly complicated code. If you don't expect null, make it clear by throwing ArgumentNullException. I get really frustrated …