What is the use of a Null Character("\0"). Is it used in all object oriented programming ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 15

What is the use of a Null Character("\0"). Is it used in all object oriented programming ?

2nd Dec 2018, 5:07 PM
$oftware Geek
$oftware Geek - avatar
7 Answers
+ 12
ashutosh gupta Do you mean it does not allow the junk values and limits the string to what user has input...?
9th Dec 2018, 10:26 AM
$oftware Geek
$oftware Geek - avatar
+ 11
I agree Haroon Ali because I didnt understand the way they explained in the other pages thinking that someone would post which would be easier to understand. But in turn I just got the links which even I could check myself....😑😑
6th Dec 2018, 4:37 PM
$oftware Geek
$oftware Geek - avatar
+ 2
TurtleShell so its mean we are not allowed to ask any question which answer we already don't know?? if someone knows the answer then why should he post it for time waste?? huh....!!!!
5th Dec 2018, 11:18 AM
Haroon Ali
Haroon Ali - avatar
+ 1
“\0” null character is basically use to mark the termination of string .string characters are ended by using this null character
9th Dec 2018, 5:37 AM
ashutosh gupta
ashutosh gupta - avatar
+ 1
Now are you able to understand it?
9th Dec 2018, 5:39 AM
ashutosh gupta
ashutosh gupta - avatar
0
Didnt intend for the comment to be mean. Its much faster to just google questions as most of which you have will be answered on Stackoverflow or have a wikipedia article. I also do not understand why you are so mad as I did gave you resources that explain what "\0" is.
6th Dec 2018, 4:40 PM
TurtleShell
TurtleShell - avatar