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 / ashponni
Is the memory for double is assigned to int and char?
| Is This Answer Correct ? | 3 Yes | 8 No |
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Can U write a C-program to print the size of a data type without using the sizeof() operator? Explain how it works inside ?
what is pointer ? what is the use of pointer?
Is void a keyword in c?
What is floating point exception error? And what are different types of errors occur during compile time and run time? why they occur?
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); }
What is difference between && and & in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
inline function is there in c language?
How can I find the day of the week given the date?
What is advantage of pointer in c?
What are the different types of endless loops?