What is a null and how can i use it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is a null and how can i use it?

9th Jun 2021, 1:47 AM
Xenon
Xenon - avatar
5 Answers
+ 4
Null pointer (sometimes written as NULL , nil , or None ), used in computer programming for an uninitialized, undefined, empty, or meaningless value. Null string, the unique string of length zero
9th Jun 2021, 4:44 AM
Nanda Balakrishnan
+ 1
Xenon If you don't know about anything in any language just see their documentation. https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/null#:~:text=null%20(C%23%20Reference)&text=The%20null%20keyword%20is%20a,except%20for%20nullable%20value%20types.
9th Jun 2021, 4:07 AM
A͢J
A͢J - avatar
+ 1
In C# null is to indicate that a reference isn't referencing an object in the heap memory. So it is pointing to nowhere. The possible issues that it can lead to are mostly handled by the Garbage Collector.
9th Jun 2021, 9:36 PM
Kiwwi#
Kiwwi# - avatar
0
"null" is like "nothing",idk,in what context?
9th Jun 2021, 2:34 AM
VuxxLong
VuxxLong - avatar
- 1
c# 100%,lvl 12 and dont know what is "null" :v
9th Jun 2021, 2:47 AM
VuxxLong
VuxxLong - avatar