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 do you mean by translation unit?
What is c++ and its uses?
What is the difference between a baller and a reference in C++?
How do you establish a has-a relationship?
Why do we use vector in c++?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is nested class in c++?
How does a copy constructor differs from an overloaded assignment operator?
What is capacity in vector in c++?
What is &x in c++?
How do you sort a sort function in c++ to sort in descending order?
What do you mean by inheritance in c++? Explain its types.
What is implicit pointer in c++?
Does c++ vector allocate memory?