Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is the output of the code and how?

main()
{
int *ptr,x;
x=sizeof(ptr);
printf("%d",x);
}



what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d&q..

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

Post New Answer

More C Interview Questions

What is scope of variable in c?

0 Answers  


How a string is stored in c?

0 Answers  


How can you invoke another program from within a C program?

0 Answers  


What is the size of structure pointer in c?

0 Answers  


Write a program to find given number is even or odd without using any control statement.

2 Answers  


Which built-in library function can be used to match a patter from the string?

0 Answers  


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

0 Answers   IBM,


What is external and internal variables What is dynamic memory allocation what is storage classes in C

3 Answers  


When would you use a pointer to a function?

0 Answers  


Why is c known as a mother language?

0 Answers  


What are the key features in c programming language?

0 Answers  


Explain how can a program be made to print the name of a source file where an error occurs?

0 Answers  


Categories