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

What are the different pointer models in c?

4 Answers  


Can one function call another?

0 Answers  


Write a program or provide a pseudo code to flip the 2nd bit of the 32 bit number ! (Phone Screen)

1 Answers   NetApp, PTU, Wipro,


What is array in c with example?

0 Answers  


What do you mean by invalid pointer arithmetic?

0 Answers  






What are the advantages of using linked list for tree construction?

0 Answers  


can we implement multi-threads in c.

0 Answers  


What is f'n in math?

0 Answers  


What are the types of c language?

0 Answers  


Can we write a program without main() function?

9 Answers  


Is main is a keyword in c?

0 Answers  


Total of how many functions are available in c?

3 Answers  


Categories