Return function | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Return function

if i return 0 or other value mean that i return 0 value? hkw many type of return

23rd Apr 2018, 5:07 AM
joe chew
joe chew - avatar
1 Answer
0
I'm not into "sql" but i'll give it a try. Yes, if you return 0, you are actually returning the "VALUE" zero(0). But sometimes it depends on what "return-type" a function/object has. For an integer function, it will return 0, for character it will return ASCII value 0(i.e. NULL character) and rest are just zeros
23rd Apr 2018, 9:10 AM
Twenty-three