ASCII NUL, ASCII 0 ('0') And Numeric Literal 0? - Tutorialspoint
Maybe your like
- Home
- Whiteboard
- Online Compilers
- Practice
- Articles
- AI Assistant
- Jobs
- Tools
- Corporate Training
- Courses
- Certifications
- Switch theme
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
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.
Arnab Chakraborty Updated on: 2019-07-30T22:30:26+05:30 7K+ Views
Kickstart Your Career
Get certified by completing the course
Get StartedTag » Code Ascii Caractère Nul
-
Caractère Nul - Wikipédia
-
Les ASCII De 0 à 127/Caractères De Contrôle - Wikilivres
-
Code ASCII De "NULL" - Caractère Nul
-
Table Des Codes ASCII Et Leur Correspondance - PureBasic
-
Chaînes De Caractères - LaBRI
-
Null Character - ASCII Code
-
ASCII : Explication De L'encodage De Caractères - IONOS
-
ASCII Character NUL - Null Character. Dec: 0, Bin: 00000000, Hex: 00
-
Code ASCII : Principe, Tables De Caractères, Conversions
-
Code Ascii De \0 - Comment Ça Marche
-
Caractères ASCII
-
1.7 Chaînes De Caractères - Enseignement
-
Codage Des Caractères Et Comparaison Des Chaînes De Caractères