How much is size of struct having 1 char & 1 integer?
Answer Posted / shahbaz
as the size of char in C++ and C is one byte and the size of
int in C++,c is 2 byte so when we illl call that struct then
the memory will assigned the contents of these char and
int's variables
But
Char in C# and java is of 16 bit and in is of 32 bits and
double of 64 bits so the size of struct is depends upon
these languages.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
When do you call copy constructors?
Which software is best for c++ programming?
What are the comments in c++?
Is c++ built on c?
Should I learn c or c++ or c#?
Explain selection sorting. Also write an example.
What is an operator function? Describe the function of an operator function?
Explain the scope of resolution operator.
give me an example for testing a program showing the test path .show how the test is important and complex.
Out of fgets() and gets() which function is safe to use and why?
What is while loops?
What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random
What is the most common mistake on c++ and oo projects?
What do you mean by static variables?
what kind of projects are suitable for c and c++