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...

What's the difference between struct x1 { ... }; and
typedef struct { ... } x2; ?

Answer Posted / vikraman85

In the first its simply structure,by declaring structure
variable accessors we can access those elements inside the
structure..
eg.struct x1 a,b,c;
In the next one the x2 acts as a datatype..
b'coz of the typedef function..
we can use x2 as datatype for the further calculations like
int,float which are predefined datatypes,but this is
manually defined datatype..

Is This Answer Correct ?    16 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a void pointer? When is a void pointer used?

1034


Why is c called c not d or e?

1058


What is the use of getchar functions?

1142


What is a header file?

1039


What is function in c with example?

1096


What is the difference between class and object in c?

1112


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2144


Why is c called c?

975


What is a constant?

1010


Do pointers need to be initialized?

1037


Explain why can’t constant values be used to define an array’s initial size?

1324


Why do we need volatile in c?

1128


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2215


What is the difference between the = symbol and == symbol?

1067


What is meant by operator precedence?

1103