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
Why c language is called c?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
Explain what is the difference between functions abs() and fabs()?
Write the syntax and purpose of a switch statement in C.
How many bytes is a struct in c?
how to find binary of number?
What is formal argument?
What is queue in c?
Disadvantages of C language.
Why & is used in c?
By using C language input a date into it and if it is right?
How do I create a directory? How do I remove a directory (and its contents)?
What is wrong in this statement?
What do you mean by dynamic memory allocation in c? What functions are used?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer