
- C Programming Tutorial
- C - Home
- C - Overview
- C - Environment Setup
- C - Program Structure
- C - Basic Syntax
- C - Data Types
- C - Variables
- C - Constants
- C - Storage Classes
- C - Operators
- C - Decision Making
- C - Loops
- C - Functions
- C - Scope Rules
- C - Arrays
- C - Pointers
- C - Strings
- C - Structures
- C - Unions
- C - Bit Fields
- C - Typedef
- C - Input & Output
- C - File I/O
- C - Preprocessors
- C - Header Files
- C - Type Casting
- C - Error Handling
- C - Recursion
- C - Variable Arguments
- C - Memory Management
- C - Command Line Arguments
- C Programming useful Resources
- C - Questions & Answers
- C - Quick Guide
- C - Useful Resources
- C - Discussion
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 Articles
- What is 0 (zero) - A decimal literal or An octal literal in C++
- Show that $\triangle ABC$, where $A (-2, 0), B (2, 0), C (0, 2)$ and $\triangle PQR$, where $P (-4, 0), Q (4, 0), R (0, 4)$ are similar.
- 58000000 × 0 = 0 Why It's 0 Only
- Evaluate the following:$(3^0 - 2^0 ) \times 5^0$
- PHP $string{0} vs. $string[0];
- Evaluate $(3^{0}+5^{0})^{5} $
- ASCII to hex and hex to ASCII converter class in JavaScript
- The value of \( 0 . \overline{23}+0 . \overline{22} \) is(a) \( 0 . \overline{45} \)(b) \( 0 . \overline{43} \)(c) \( 0 . \overline{45} \)(d) 0.45
- Java Program to check whether the character is ASCII 7 bit numeric
- Find the distance between the points $( 0,\ 0)$ and $( 36,\ 15)$.
- Difference between ANSI and ASCII
- Fill in the blanks:1. $100 + 0 = ........$2. $999 - 0 = ........$3. $501 \times 0 =.......$
- Java Program to check whether the entered character is ASCII 7 bit numeric and character
- Plot the points $( 0,\ 2),\ ( 3,\ 0),\ ( -2,\ 0)$ and $( 0,\ -3)$ on the graph. Which figure do we obtain if we join the points?
- Ascii() in python

Advertisements