自己解決しました
スレ汚しすみません


#include <stdio.h>
int main(void)
{
char x = 'a';
int b;
b = (int)x;
printf("%d",b);
return 0;
}