main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
wat is the o/p and how?
Answer Posted / k.thanigaivel
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 |
Post New Answer View All Answers
How can I get back to the interactive keyboard if stdin is redirected?
What are external variables in c?
why wipro wase
a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above
What does c mean before a date?
how to find binary of number?
What is structure padding and packing in c?
how to count no of words,characters,lines in a paragraph.
What is a void pointer? When is a void pointer used?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
The __________ attribute is used to announce variables based on definitions of columns in a table?
What is a good way to implement complex numbers in c?
what are # pragma staments?
What is variable initialization and why is it important?
Why enum is used in c?