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 do you mean by translation unit?

1093


What is c++ and its uses?

1225


What is the difference between a baller and a reference in C++?

1120


How do you establish a has-a relationship?

1109


Why do we use vector in c++?

1075


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1323


Which bit wise operator is suitable for checking whether a particular bit is on or off?

1027


What is nested class in c++?

956


How does a copy constructor differs from an overloaded assignment operator?

1036


What is capacity in vector in c++?

1008


What is &x in c++?

999


How do you sort a sort function in c++ to sort in descending order?

991


What do you mean by inheritance in c++? Explain its types.

1140


What is implicit pointer in c++?

1077


Does c++ vector allocate memory?

1009