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
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
What is a forward referencing and when should it be used?
What are the steps in the development cycle?
Difference between declaration and definition of a variable.
How to tokenize a string in c++?
Does c++ cost money?
Is map sorted c++?
Explain data encapsulation?
What is the meaning of c++?
Why is c++ so fast?
Write a function that swaps the values of two integers, using int* as the argument type?
What is an adaptor class or wrapper class in c++?
what are the iterator and generic algorithms.
What are the two main components of c++?
Explain how to initialize a const data member.