Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a class definition?

1007


What is a lambda function c++?

1028


Can circle be called an ellipse?

1023


Explain the extern storage classes in c++.

1000


What is the default width for ouputting a long integer using the insertion operator?

1170


Can we make any program in c++ without using any header file and what is the shortest program in c++.

1068


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

994


Explain the purpose of the keyword volatile.

1101


Which is best ide for c++?

964


How a new element can be added or pushed in a stack?

960


Is java based off c++?

929


What does n mean in c++?

1070


Explain the uses oof nested class?

1089


Can you declare an array without a size in c++?

960


How many different levels of pointers are there?

1149