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...

struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator??

Answer Posted / kk

12 is answer
int a takes 4 bytes
char b takes 4 bytes due to data padding
int *p any pointer takes 4 bytes
so totally 12 bytes........

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1081


What is a function in c?

1587


How can you find the day of the week given the date?

1204


How do we print only part of a string in c?

1031


How do I send escape sequences to control a terminal or other device?

1081


Explain what is gets() function?

1082


a c code by using memory allocation for add ,multiply of sprase matrixes

2807


C language questions for civil engineering

1722


Why cant I open a file by its explicit path?

1038


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1351


What is calloc() function?

1111


What are qualifiers in c?

1040


In C language what is a 'dangling pointer'?

1164


Can an array be an Ivalue?

1100


Can a variable be both constant and volatile?

1128