what is the output of the code and how?
main()
{
int *ptr,x;
x=sizeof(ptr);
printf("%d",x);
}
Answer Posted / veluri.haritha
If a compiler is a 16 bit compiler and its memory model is
tiny or small or compact memory model then the "x" value
will be 2 bytes.
if the memory model is large or huge memory model then the
"x" value will be 4 bytes.
if a compiler is a 32 bit compiler then the also the x value
is 4 bytes
by
V.haritha,not yet joined in B.tech
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What does the c in ctime mean?
What is a macro, and explain how do you use it?
Is it better to use malloc() or calloc()?
What is type qualifiers?
What are the disadvantages of external storage class?
Mention four important string handling functions in c languages .
Explain setjmp()?
What are header files and what are its uses in C programming?
What is an array in c?
Do you know pointer in c?
What are comments and how do you insert it in a C program?
What is the difference between if else and switchstatement
What is integer constants?
what is the significance of static storage class specifier?
How do I read the arrow keys? What about function keys?