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
Why do we use classes in c++?
What are associate containers?
Define a nested class.
How do you remove an element from a set in c++?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
Can I learn c++ in a week?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
How many types of modularization are there in c++?
What is :: operator in c++?
What are enumerations?
What is the auto keyword good for in c++?
Program to check whether a word is a sub-string or not of a string typed
How static variables and local variablesare similar and dissimilar?
What does return 0 do in c++?