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
Explain the concept of friend function in c++?
Is dev c++ free?
Why can’t you call invariants() as the first line of your constructor?
What is the main purpose of c++?
Describe friend function & its advantages.
Is multimap sorted c++?
What is a breakpoint?
Can we make copy constructor private in c++?
What is const pointer and const reference?
Does c++ support exception handling?
Is java a c++?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
What is #include iomanip?
What is a stack? How it can be implemented?
How is new() different from malloc()?