string and integer size value

main()
{
printf(“\n%d%d%d”,sizeof(“3”),sizeof(“3”),sizeof(3));
}
Tutorial answer:
1 2 2
Debugging solution:
printf statement sizeof(“3”) it will indicate it is string because “double quotation present here, so there size value is 1,then next sizeof value is also refer to string there size value is 2(because it will take also there first sizeof value:these condition apply only for string: see string and integer value in c/c++
)finally it will print integer size value :2

Related post