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

How old is c programming language?

996


please give me some tips for the placement in the TCS.

2092


What is table lookup in c?

1080


Write a program to check whether a number is prime or not using c?

1039


Explain enumerated types in c language?

1029


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1280


What is the size of structure in c?

1140


Explain do array subscripts always start with zero?

1214


Explain how do you determine whether to use a stream function or a low-level function?

1070


How can I prevent another program from modifying part of a file that I am modifying?

1033


If errno contains a nonzero number, is there an error?

1356


How can I swap two values without using a temporary?

1092


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1099


Why we use void main in c?

1147


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

1059