What is the difference in size of this two clasees?
Class A
{
int a;
char c;
float f;
}
Class B
{
float f;
char c;
int a;
}
Answer Posted / som shekhar
No difference
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are pointer-to-members in C++? Give their syntax.
What is endl?
What are the various compound assignment operators in c++?
What are features of c++?
What are multiple inheritances (virtual inheritance)?
How many namespaces are there in c++?
What is the difference between a definition and a declaration?
Is c++ faster than c?
Are strings immutable in c++?
Is c++ a programming language?
You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
What programming language should I learn first?
How long does it take to get good at leetcode?
What would happen on forgetting [], while deallocating an array through new?