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


Diff: between this 2 classes in terms of memory
class A
{
int i;
char c;
double d;
};
class A
{
double d;
int i;
char c;
};
How it is calculating?



Diff: between this 2 classes in terms of memory class A { int i; char c; double d; };..

Answer / ashponni

Is the memory for double is assigned to int and char?

Is This Answer Correct ?    3 Yes 8 No

Post New Answer

More C Interview Questions

How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

0 Answers   Amazon,


Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?

3 Answers   HCL, TCS,


what is pointer ? what is the use of pointer?

6 Answers   Infosys,


Is void a keyword in c?

0 Answers  


What is floating point exception error? And what are different types of errors occur during compile time and run time? why they occur?

1 Answers  


main() { unsigned int k = 987 , i = 0; char trans[10]; do { trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' ); } while(k /= 16); printf("%s\n", trans); }

4 Answers   Vector,


What is difference between && and & in c?

0 Answers  


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

0 Answers  


inline function is there in c language?

4 Answers  


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

0 Answers  


What is advantage of pointer in c?

0 Answers  


What are the different types of endless loops?

0 Answers  


Categories