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

How much is size of struct having 1 char & 1 integer?

Answer Posted / shahbaz

as the size of char in C++ and C is one byte and the size of
int in C++,c is 2 byte so when we illl call that struct then
the memory will assigned the contents of these char and
int's variables
But
Char in C# and java is of 16 bit and in is of 32 bits and
double of 64 bits so the size of struct is depends upon
these languages.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Destructor in C++?

1201


Explain the use of vtable.

1092


What is the use of ::(scope resolution operator)?

1077


Is c++ a difficult language?

1136


How a macro differs from a template?

1182


How a modifier is similar to mutator?

1185


Explain queue. How it can be implemented?

1164


Explain the uses oof nested class?

1146


Write about the stack unwinding?

1068


Can user-defined object be declared as static data member of another class?

1027


How can you link a c program with a c function?

1076


What flag means?

964


what is Loop function? What are different types of Loops?

1235


What is pair in c++?

1073


When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1107