Check the details from here.
#include <stdio.h>
void main()
{
char ch;
printf("Enter a character: ");
scanf("%c", &ch);
printf("The ASCII value of %c is: %d\n", ch, ch);
}
#include <stdio.h>
void main()
{
char ch;
printf("Enter a character: ");
scanf("%c", &ch);
printf("The ASCII value of %c is: %d\n", ch, ch);
}
This was quite helpful. I sure learnt something. Thanks.
I am glad that it helped you. 😊
This was quite helpful. I sure learnt something. Thanks.