

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
ASCII NUL, ASCII 0 (‘0’) and Numeric literal 0?
Here we will see the ASCII NUL, ASCII 0 and the Numeric Literal 0. The ASCII null is represented as 0x00, and zero is represented as 0x30. The ASCII NUL character is used to denote the end of the string in C or C++. When programmer used ‘0’ (character 0) it is treated as 0x30. This is a hexadecimal number. The decimal equivalent is 48. To put ASCII NUL we have to mention ‘\0’ instead of ‘0’.
char asciiNul = ‘\0’; int zero = 0; char zeroChar = ‘0’;
The first one is ASCII NUL, second one is numeric 0, and the third one is character 0.
- Related Questions & Answers
- PHP $string{0} vs. $string[0];
- What is 0 (zero) - A decimal literal or An octal literal in C++
- Convert RE 1(0+1)*0 into equivalent DFA.
- Construct ∈-NFA of Regular Language L = 0(0+1)*1
- MySQL select to count values equal to 0 and greater than 0 from a column?
- Find smallest number K such that K % p = 0 and q % K = 0 in C++
- Difference Between RAID 0 and RAID 1
- Difference Between exit(0) and exit(1)
- Bootstrap 4 .border-0 class
- Intel 8212 in mode 0
- Convert MySQL null to 0?
- Construct Pushdown automata for L = {0(n+m)1m2n | m, n = 0} in C++
- Contiguous subarray with 0 and 1 in JavaScript
- Forming string using 0 and 1 in JavaScript
- ASCII to hex and hex to ASCII converter class in JavaScript
Advertisements