Hi i always mix up a NULL and '\0' and 0.
Can you write me when to use these things?
kv79
-1
Posting Whiz in Training
Recommended Answers
Jump to Post>i always mix up a NULL and '\0' and 0.
The short answer is that you use NULL with pointers, '\0' with characters, and 0 with everything else.The long answer is that '\0' and 0 are identical. In C they're both integers with the value 0. You can …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.