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
If you push the numbers (in order) 1, 3, and 5 onto a stack, which pops out first a) 1 b) 5 c) 3
What are c++ storage classes?
What does it mean to declare a destructor as static?
How can I learn dev c++ programming?
Why do we use pointers in c++?
What is setf in c++?
Who invented turbo c++?
Can a constructor return a value?
Is there structure in c++?
Can class objects be passed as function arguments?
What are features of c++?
What do the header files usually contains?
When to use “const” reference arguments in a function?
What is the full form of ios?
Can I create my own functions in c++?