main()
{
printf("\n %d %d %d",sizeof('3'),sizeof("3"),sizeof(3));
}
Answer Posted / karen
It is theoretically possible for the answer to vary
depending on characteristics of the system. This is why it
is always best to use sizeof instead of assuming the size
of a datatype. This line is equivalent to:
printf("\n %d %d %d",sizeof(char),sizeof(char[2]),sizeof
(int));
The middle is char[2] because it contains 3 and \0.
On my x86 windows 7 system, this program outputs 1 2 4.
Your numbers may be different due to system architecture
differences.
Is This Answer Correct ? | 12 Yes | 2 No |
Post New Answer View All Answers
formula to convert 2500mmh2o into m3/hr
What is pointer and structure in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is structure in c explain with example?
What is the explanation for prototype function in c?
Where register variables are stored in c?
What are two dimensional arrays alternatively called as?
How do you define structure?
Who is the founder of c language?
What is #line?
Tell me is null always defined as 0(zero)?
Should a function contain a return statement if it does not return a value?
What is a list in c?
what are the facialities provided by you after the selection of the student.
praagnovation