Q. What is the output of C program with strings?
Code:int main()
{
char var='b';
printf("%d ", sizeof("a"));
printf("%d ", sizeof('b'));
printf("%d ", sizeof(10));
printf("%d ", sizeof(var));
}
//int size is 2 bytes
β
Correct Answer: (B)
2 2 2 1