Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

how to get the ascii value of a character in c

#include <stdio.h>
#include <conio.h>
int main(){
    char c;
    //press a character or a key
    c = getch();
    printf("%d",c);
    return 0;
}
 
PREVIOUS NEXT
Tagged: #ascii #character
ADD COMMENT
Topic
Name
2+5 =