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
How do I use strcmp?
What is the method to save data in stack data structure type?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Explain zero based addressing.
Is python a c language?
What is function and its example?
What is volatile variable in c with example?
What does volatile do?
Why n++ execute faster than n+1 ?
write a program to print data of 5 five students with structures?
Explain how do you print an address?
Explain what is the benefit of using #define to declare a constant?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is the difference between struct and union in C?