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);
}

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


Please Help Members By Posting Answers For Below Questions

What does the c in ctime mean?

1099


What is a macro, and explain how do you use it?

1086


Is it better to use malloc() or calloc()?

1121


What is type qualifiers?

1137


What are the disadvantages of external storage class?

1062


Mention four important string handling functions in c languages .

1116


Explain setjmp()?

1077


What are header files and what are its uses in C programming?

1245


What is an array in c?

1053


Do you know pointer in c?

1056


What are comments and how do you insert it in a C program?

1254


What is the difference between if else and switchstatement

1937


What is integer constants?

1085


what is the significance of static storage class specifier?

2265


How do I read the arrow keys? What about function keys?

1088