what is the output of the code and how?
main()
{
int *ptr,x;
x=sizeof(ptr);
printf("%d",x);
}
Answer / 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 |
What is scope of variable in c?
How a string is stored in c?
How can you invoke another program from within a C program?
What is the size of structure pointer in c?
Write a program to find given number is even or odd without using any control statement.
Which built-in library function can be used to match a patter from the string?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is external and internal variables What is dynamic memory allocation what is storage classes in C
When would you use a pointer to a function?
Why is c known as a mother language?
What are the key features in c programming language?
Explain how can a program be made to print the name of a source file where an error occurs?