#include<stdio.h>
main(0
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
Answer Posted / abhishek kumar verma
you have made a typing mistake if code will be this
#include<stdio.h>
main()
{
printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3));
}
then output will be 4 2 4
because in first it will print the size of an integer and in second it will print the size of an string and in third it will print the size of integer again .
| Is This Answer Correct ? | 4 Yes | 5 No |
Post New Answer View All Answers
How do you print only part of a string?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
What does dm mean sexually?
What is the size of enum in c?
What is the use of sizeof () in c?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
explain what is an endless loop?
When should you not use a type cast?
How can I find the modification date of a file?
Why doesnt that code work?
What is d'n in c?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Is it possible to initialize a variable at the time it was declared?
What is meant by type specifiers?