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

How the programmer of a class should decide whether to declare member function or a friend function?

1122


What is atoi in c++?

1078


What do you mean by static variables?

1180


How does list r; differs from list r();?

1159


Define linked lists with the help of an example.

1030


Is there finally in c++?

1111


What are the uses of static class data?

1187


How is c++ used in the real world?

1043


What is command line arguments in C++? What are its uses? Where we have to use this?

1279


What is #include c++?

1141


What things would you remember while making an interface?

1007


When should I use unitbuf flag?

1020


What is static function? Explain with an example

1083


What is a stack? How it can be implemented?

1169


Can a list of string be stored within a two dimensional array?

1002