What will be the output of below C program?
char ch = 'a';
if(sizeof(ch) == sizeof(char))
compile time error, invalid expression.
here even though we are taking 'a' but since it is stored in char ch, sizeof(ch) will be treated as sizeof(char). so both are same. so it prints "same".
Back To Top