In the below code how can a char
data type be assigned to an integer variable (as in char data type alphabets are written in single quote) and while printing the char data type it is using %d subscript instead of using %c ?
#include <stdio.h>
int main()
{
char a = 30, b = 40, c = 10;
char d = (a * b) / c;//a char value is storing integer value ?how ?
printf ("%d ", d);
return 0;
}
how can a char data type is storing integer value