I want to know the reason behind why I am getting 2 bytes as a size of the character and at the same time 1 byte for the similar character when stored in a place-holder.
#include <stdio.h>
void main(void) {
char a = "$";
printf("%d\n", sizeof("$")); // Here output is 2 which should be 1
printf("%d", sizeof(a)); // Here output is 1 which is correct
}