C Program to print ASCII values of all characters

C Program to display the ASCII values of all characters

This page has a C program to print the ASCII values of all characters. The program is to find the ASCII values of  all 256 characters and print the ASCII values of the 256 charactersThe below given C program will display (print) the ASCII values of all charactersKindly check out the C Program to display the ASCII values of all characters. 


ASCII values of all characters Program


    #include<stdio.h>
    int main() {
                  int i = 0;
                  for (i = 0; i < 256; ++i) {
                  printf("ASCII value for character %c is %d\n", i, i);
                 }
    }

  


Sample Output:

ASCII value for character is 0
ASCII value for character ☺ is 1
ASCII value for character ☻ is 2
ASCII value for character ♥ is 3
ASCII value for character ♦ is 4
ASCII value for character ♣ is 5
ASCII value for character ♠ is 6
ASCII value for character is 7
ASCII value for character is 8
ASCII value for character is 9
ASCII value for character is 10
ASCII value for character ♂ is 11
ASCII value for character ♀ is 12
ASCII value for character is 13
ASCII value for character ♫ is 14
ASCII value for character ☼ is 15
ASCII value for character ► is 16
ASCII value for character ◄ is 17
ASCII value for character ↕ is 18
ASCII value for character ‼ is 19
ASCII value for character ¶ is 20
ASCII value for character § is 21
ASCII value for character ▬ is 22
ASCII value for character ↨ is 23
ASCII value for character ↑ is 24
ASCII value for character ↓ is 25
ASCII value for character → is 26
ASCII value for character ← is 27
ASCII value for character ∟ is 28
ASCII value for character ↔ is 29
ASCII value for character ▲ is 30
ASCII value for character ▼ is 31
ASCII value for character is 32
ASCII value for character ! is 33
ASCII value for character " is 34
ASCII value for character # is 35
ASCII value for character $ is 36
ASCII value for character % is 37
ASCII value for character & is 38
ASCII value for character ' is 39
ASCII value for character ( is 40
ASCII value for character ) is 41
ASCII value for character * is 42
ASCII value for character + is 43
ASCII value for character , is 44
ASCII value for character - is 45
ASCII value for character . is 46
ASCII value for character / is 47
ASCII value for character 0 is 48
ASCII value for character 1 is 49
ASCII value for character 2 is 50
ASCII value for character 3 is 51
ASCII value for character 4 is 52
ASCII value for character 5 is 53
ASCII value for character 6 is 54
ASCII value for character 7 is 55
ASCII value for character 8 is 56
ASCII value for character 9 is 57
ASCII value for character : is 58
ASCII value for character ; is 59
ASCII value for character < is 60
ASCII value for character = is 61
ASCII value for character > is 62
ASCII value for character ? is 63
ASCII value for character @ is 64
ASCII value for character A is 65
ASCII value for character B is 66
ASCII value for character C is 67
ASCII value for character D is 68
ASCII value for character E is 69
ASCII value for character F is 70
ASCII value for character G is 71
ASCII value for character H is 72
ASCII value for character I is 73
ASCII value for character J is 74
ASCII value for character K is 75
ASCII value for character L is 76
ASCII value for character M is 77
ASCII value for character N is 78
ASCII value for character O is 79
ASCII value for character P is 80
ASCII value for character Q is 81
ASCII value for character R is 82
ASCII value for character S is 83
ASCII value for character T is 84
ASCII value for character U is 85
ASCII value for character V is 86
ASCII value for character W is 87
ASCII value for character X is 88
ASCII value for character Y is 89
ASCII value for character Z is 90
ASCII value for character [ is 91
ASCII value for character \ is 92
ASCII value for character ] is 93
ASCII value for character ^ is 94
ASCII value for character _ is 95
ASCII value for character ` is 96
ASCII value for character a is 97
ASCII value for character b is 98
ASCII value for character c is 99
ASCII value for character d is 100
ASCII value for character e is 101
ASCII value for character f is 102
ASCII value for character g is 103
ASCII value for character h is 104
ASCII value for character i is 105
ASCII value for character j is 106
ASCII value for character k is 107
ASCII value for character l is 108
ASCII value for character m is 109
ASCII value for character n is 110
ASCII value for character o is 111
ASCII value for character p is 112
ASCII value for character q is 113
ASCII value for character r is 114
ASCII value for character s is 115
ASCII value for character t is 116
ASCII value for character u is 117
ASCII value for character v is 118
ASCII value for character w is 119
ASCII value for character x is 120
ASCII value for character y is 121
ASCII value for character z is 122
ASCII value for character { is 123
ASCII value for character | is 124
ASCII value for character } is 125
ASCII value for character ~ is 126
ASCII value for character ⌂ is 127
ASCII value for character Ç is 128
ASCII value for character ü is 129
ASCII value for character é is 130
ASCII value for character â is 131
ASCII value for character ä is 132
ASCII value for character à is 133
ASCII value for character å is 134
ASCII value for character ç is 135
ASCII value for character ê is 136
ASCII value for character ë is 137
ASCII value for character è is 138
ASCII value for character ï is 139
ASCII value for character î is 140
ASCII value for character ì is 141
ASCII value for character Ä is 142
ASCII value for character Å is 143
ASCII value for character É is 144
ASCII value for character æ is 145
ASCII value for character Æ is 146
ASCII value for character ô is 147
ASCII value for character ö is 148
ASCII value for character ò is 149
ASCII value for character û is 150
ASCII value for character ù is 151
ASCII value for character ÿ is 152
ASCII value for character Ö is 153
ASCII value for character Ü is 154
ASCII value for character ¢ is 155
ASCII value for character £ is 156
ASCII value for character ¥ is 157
ASCII value for character ₧ is 158
ASCII value for character ƒ is 159
ASCII value for character á is 160
ASCII value for character í is 161
ASCII value for character ó is 162
ASCII value for character ú is 163
ASCII value for character ñ is 164
ASCII value for character Ñ is 165
ASCII value for character ª is 166
ASCII value for character º is 167
ASCII value for character ¿ is 168
ASCII value for character ⌐ is 169
ASCII value for character ¬ is 170
ASCII value for character ½ is 171
ASCII value for character ¼ is 172
ASCII value for character ¡ is 173
ASCII value for character « is 174
ASCII value for character » is 175
ASCII value for character ░ is 176
ASCII value for character ▒ is 177
ASCII value for character ▓ is 178
ASCII value for character │ is 179
ASCII value for character ┤ is 180
ASCII value for character ╡ is 181
ASCII value for character ╢ is 182
ASCII value for character ╖ is 183
ASCII value for character ╕ is 184
ASCII value for character ╣ is 185
ASCII value for character ║ is 186
ASCII value for character ╗ is 187
ASCII value for character ╝ is 188
ASCII value for character ╜ is 189
ASCII value for character ╛ is 190
ASCII value for character ┐ is 191
ASCII value for character └ is 192
ASCII value for character ┴ is 193
ASCII value for character ┬ is 194
ASCII value for character ├ is 195
ASCII value for character ─ is 196
ASCII value for character ┼ is 197
ASCII value for character ╞ is 198
ASCII value for character ╟ is 199
ASCII value for character ╚ is 200
ASCII value for character ╔ is 201
ASCII value for character ╩ is 202
ASCII value for character ╦ is 203
ASCII value for character ╠ is 204
ASCII value for character ═ is 205
ASCII value for character ╬ is 206
ASCII value for character ╧ is 207
ASCII value for character ╨ is 208
ASCII value for character ╤ is 209
ASCII value for character ╥ is 210
ASCII value for character ╙ is 211
ASCII value for character ╘ is 212
ASCII value for character ╒ is 213
ASCII value for character ╓ is 214
ASCII value for character ╫ is 215
ASCII value for character ╪ is 216
ASCII value for character ┘ is 217
ASCII value for character ┌ is 218
ASCII value for character █ is 219
ASCII value for character ▄ is 220
ASCII value for character ▌ is 221
ASCII value for character ▐ is 222
ASCII value for character ▀ is 223
ASCII value for character α is 224
ASCII value for character ß is 225
ASCII value for character Γ is 226
ASCII value for character π is 227
ASCII value for character Σ is 228
ASCII value for character σ is 229
ASCII value for character µ is 230
ASCII value for character τ is 231
ASCII value for character Φ is 232
ASCII value for character Θ is 233
ASCII value for character Ω is 234
ASCII value for character δ is 235
ASCII value for character ∞ is 236
ASCII value for character φ is 237
ASCII value for character ε is 238
ASCII value for character ∩ is 239
ASCII value for character ≡ is 240
ASCII value for character ± is 241
ASCII value for character ≥ is 242
ASCII value for character ≤ is 243
ASCII value for character ⌠ is 244
ASCII value for character ⌡ is 245
ASCII value for character ÷ is 246
ASCII value for character ≈ is 247
ASCII value for character ° is 248
ASCII value for character ∙ is 249
ASCII value for character · is 250
ASCII value for character √ is 251
ASCII value for character ⁿ is 252
ASCII value for character ² is 253
ASCII value for character ■ is 254
ASCII value for character is 255


Related Popular Posts:

*  Write a c program to check whether a given number is prime number or not?

 

*  Write a C program to find the prime numbers between 1 and 100

 

*  Write a C program to display the prime numbers between a range ?

 

*  Write a C program to find the prime numbers between a range using while loop?

 

*  Write a C program to find the sum of prime numbers between a range 

Other Related C Programs :


* C Program to find whether the given number is Odd or Even

* C Program to find the Sum of Odd Digits

* C Program to find the Sum of Even Digits

* C Program to find the Sum of Even and Odd Digits,

* C Program to Display Odd digits

* C Program to Display even digits

* C Program to Display Odd Numbers,

* C Program to Display Even Numbers,

* C Program to Check whether the given number is Armstrong number

* C Program to display the Armstrong numbers in Range

* C Program to display the Armstrong numbers between 1 and 1000

* C Program to check perfect number, perfect numbers in range

* C Program to Check Prime number, Prime numbers between 1 and 100

* C Program to display the Prime numbers in a Range

* C Program to display the Sum of Prime numbers

* C Program to Check Strong number

* C Program to display the Strong number in Range

* C Program to Check whether the given number is polindrome number or not

* C Program to Check polindrome number using for loop

* C Program to Check polindrome number using Recursion

* C Program to  check whether the given string is polindrome or not

* C Program to find the Roots of Quadratic equation

* C Program to display Fibonacci Series

* C Program to display the Fibonacci Series using an array

* C Program to display the Fibonacci Series using while loop

* C Program to find the Sum of Fibonacci Series, Factorial of Number

* C Program to find the Factorial without using Recursion

* C Program to find the Factorial using Pointers

* C Program to find the Factorial using Function

Bookmark and Share