ASCII value in C | ASCII value of different characters | ASCII representation of different symbols in C | Programming tutorials | C programming | C programming tutorials
Hello guys, in this article we are going to have a brief idea about the ASCII character set of different characters in C. ASCII stands for American Standard Codes For Information Interchange. Every character or a special symbol in C can be represented by a unique numerical value which is known as its ASCII value. There are 256 characters in C and each one of them have a unique ASCII value assigned to them.
Below is a table showing the different symbols and their ASCII values:-
Symbol | ASCII Value |
' Space ' | 32 |
0 | 48 |
1 | 49 |
2 | 50 |
3 | 51 |
4 | 52 |
5 | 53 |
6 | 54 |
7 | 55 |
8 | 56 |
9 | 57 |
A | 65 |
B | 66 |
Z | 90 |
a | 97 |
b | 98 |
z | 122 |
*NOTE:-
Always remember that ' 1 ' and 1 are different in C language, ' 1 ' is a numerical value but it is considered as a special symbol and is assigned an ASCII value of 49. On the other hand, 1 is simply an integer value.
In our next blogs, we will learn about the "Conditional Statements" in C which will cover the topics related to If - else program, for loops and many more. So, stay tuned and connected to our blogs for regular articles on the C language. If
you have any suggestion / Advice for us, feel free to let us know in
the comment section. We will be happy enough to know your feedback.
Also, your appreciation will motivate us to add more to this blog.
Till then, Stay safe & Stay healthy. Have a nice day!!
Comments
Post a Comment