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
Can a pointer be static?
Is linux written in c?
Explain how can type-insensitive macros be created?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
What does != Mean in c?
Which is best book for data structures in c?
How are Structure passing and returning implemented by the complier?
Wt are the Buses in C Language
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
Is anything faster than c?
What is p in text message?
Is multithreading possible in c?
Is swift based on c?
What does emoji p mean?
Apart from dennis ritchie who the other person who contributed in design of c language.