How much is size of struct having 1 char & 1 integer?
Answer Posted / chinmay
#include<stdio.h>
#include<conio.h>
void main()
{
struct idk
{
char ch;
int i;
}abc;
printf("size of structure is: %d",sizeof(abc));
getch();
}
O/P is 3
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does floor mean in c++?
Which is best ide for c++?
How would you obtain segment and offset addresses from a far address of a memory location?
What is iostream in c++ used for?
What is a .lib file in c++?
What is the full form nasa?
What is using namespace std in cpp?
Explain linked list using c++ with an example?
what are Operators and explain with an example?
What is ctime c++?
Can member data be public?
Describe the process of creation and destruction of a derived class object?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
What is #include sstream?
What is the use of string in c++?