#include <stdio.h> int main() { int val; char *a; a = (char*)malloc(sizeof(char) * 1); *a = 20; val = (int)*a; printf("%d", val); free(a); return 0; }