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
Write a function to find the nth item from the end of a linked list in a single pass.
Why do we use constructor?
What is the size of integer variable?
Will c++ be replaced?
What are associate containers?
What is a terminating character in c++?
What is unary operator? List out the different operators involved in the unary operator.
What is the use of object in c++?
what is data encapsulation in C++?
What is the use of namespace std in C++?
Explain the use of virtual destructor?
Explain how to initialize a const data member.
What is format for defining a structure?
Write a program to add three numbers in C++ utilizing classes.
What is a multiset c++?