thanigaivel k


{ City } chennai
< Country > india
* Profession * diploma in mechatronics engg
User No # 27546
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 27
Users Marked my Answers as Wrong # 25
Questions / { thanigaivel k }
Questions Answers Category Views Company eMail




Answers / { thanigaivel k }

Question { Tech Mahindra, 29489 }

main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?


Answer

This output is
4 2 4

Explanation:
sizeof('1 or 2 or 3,......or n')=4

sizeof("0")=2
sizeof("10")=3
sizeof("100")=4
sizeof("1000")=5
sizeof("10000")=6
.
.
.
.
.
sizeof("n")=n

sizeof(1 or 2 or 3......or n)=4

Is This Answer Correct ?    27 Yes 25 No