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 can i calculate mean,median,mode by using c program

1 Answers   HCL,


What is an arrays?

0 Answers  


Can we use any name in place of argv and argc as command line arguments?

0 Answers  


what will be the output for the following main() { printf("hi" "hello"); }

5 Answers   RoboSoft,


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

0 Answers  


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

0 Answers   Aspire, Infogain,


what is difference between #include<stdio.h> and #include"stdio.h"

4 Answers  


How many parameters should a function have?

0 Answers  


code for replace tabs with equivalent number of blanks

0 Answers   Bosch,


what is the use of pointers

6 Answers   Adobe, GrapeCity,


How do you determine the length of a string value that was stored in a variable?

0 Answers  


in linking some of os executables are linking name some of them

0 Answers   IBM,


Categories