Recommended Answers
Jump to PostThe first one is an empty string, the second one is a single character 0 identical to the third one.
Jump to PostTo me, when doing C/C++:
0 would digit zero, that is, a numerical value.
'0' could be the character capital oh or the character zero. For example:
char word[10] = "Oxford";
char number[10] = "01234";Depending on typeface used 'O' may look exactly like '0' making it …
Jump to Post'\0' is the null character used to terminate strings in C/C++.
which is 0. Why? because the backlash '\' tells the compiler to interpret the next character litterally, it is one of the several
All 11 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.