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
How the programmer of a class should decide whether to declare member function or a friend function?
What is atoi in c++?
What do you mean by static variables?
How does list r; differs from list r();?
Define linked lists with the help of an example.
Is there finally in c++?
What are the uses of static class data?
How is c++ used in the real world?
What is command line arguments in C++? What are its uses? Where we have to use this?
What is #include c++?
What things would you remember while making an interface?
When should I use unitbuf flag?
What is static function? Explain with an example
What is a stack? How it can be implemented?
Can a list of string be stored within a two dimensional array?