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 is a class definition?
What is a lambda function c++?
Can circle be called an ellipse?
Explain the extern storage classes in c++.
What is the default width for ouputting a long integer using the insertion operator?
Can we make any program in c++ without using any header file and what is the shortest program in c++.
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Explain the purpose of the keyword volatile.
Which is best ide for c++?
How a new element can be added or pushed in a stack?
Is java based off c++?
What does n mean in c++?
Explain the uses oof nested class?
Can you declare an array without a size in c++?
How many different levels of pointers are there?