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
What is c++ and its uses?
What is the extraction operator and what does it do?
What is a tree in c++?
Can comments be longer than one line?
Can a class be static in c++?
What does std mean in c++?
What is the header file for setw?
Why do we need c++?
Explain about vectors in c ++?
What is the difference between an external iterator and an internal iterator?
What is the use of vtable?
What is c++ namespace?
What is a static member?
What is a singleton class c++?
Can we distribute function templates and class templates in object libraries?