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?

Answer Posted / ashponni

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

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is flag a keyword in c?

908


Explain the use of keyword 'register' with respect to variables.

808


program to convert a integer to string in c language'

2193


How can I implement a delay, or time a users response, with sub-second resolution?

843


7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.

2475


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1662


Does c have class?

838


What does c in a circle mean?

761


What is the use of define in c?

796


What is ambagious result in C? explain with an example.

2307


What do you understand by friend-functions? How are they used?

929


What is scope of variable in c?

772


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

859


Is c still used?

798


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1454