int d;
scanf("%c", &d);
printf("%d", d);
here giving a alpha value as input and am trying to get ascii value as output why is not working instead it shows address of the char all other ways it works, like getting decimal in char and convert into char.