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 to declare a function pointer?

1044


What is a namespace in c++?

2143


Why is c++ a mid-level programming language?

1084


Is C++ case sensitive a) False b) Depends on implementation c) True

1134


What are destructors?

1060


Why is c++ still popular?

1099


What is abstract keyword in c++?

1119


Define a pdb file.

1126


Declare a class vehicle and make it an abstract data type.

1024


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

1205


What is the best free c++ compiler for windows?

1151


What is oops in c++?

1113


What is called array?

1149


What is auto type c++?

1170


Is there any function that can skip certain number of characters present in the input stream?

1126