Keys haven't got ASCII codes. You might mean the scan code which is returned by functions like getch(TurboC) and ReadKey(TurboPascal) prefixed by a zero value.
Left: 0, 75
Right: 0, 77
Up: 0, 72
Down: 0, 80
PgUp: 0, 73
PgDn: 0, 81
Home: 0, 71
End: 0, 79
Ins: 0, 82
Del: 0, 83
Ascii value of 5 is 53.
The ascii value of zero - is 48.
int main (void) { printf ("space is %d\n", ' '); return 0; }
ASCII standardizes characters between 0 and 127.
There is no ASCII value of :-) ASCII encodes only single characters, assigning a numerical 0-127 value to each character. However, if you want the ASCII encoding of a smiley, here's some samples (using Hex values): :-) 0x3A2D29 :) 0x3A29
32 is the ASCII Code for a space.
The ascii value of zero - is 48.
Ascii value of 5 is 53.
int main (void) { printf ("space is %d\n", ' '); return 0; }
The ASCII value for "C" is 67, for "c", 99.
\ is the character for 92 in ASCII.
To get the ASCII code of a key pressed in programming, you typically use event handling in a specific language. For example, in JavaScript, you can listen for a keydown event and access the event.keyCode or event.which properties to get the ASCII code. In Python, you can use libraries like tkinter to bind a key event and retrieve the key's ASCII value using the ord() function. The exact method can vary based on the programming environment and language used.
In octal notation, the ASCII code for a space is 040. So, the octal equivalent for a space is simply 040.
deepak
The ASCII value of capital K is 75. For a small k it is 107.
ASCII standardizes characters between 0 and 127.
There is no ASCII value of :-) ASCII encodes only single characters, assigning a numerical 0-127 value to each character. However, if you want the ASCII encoding of a smiley, here's some samples (using Hex values): :-) 0x3A2D29 :) 0x3A29