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

Why do we use & in c?

998


A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile

1091


Write the syntax and purpose of a switch statement in C.

1101


What is c standard library?

1203


What are local variables c?

1015


Can you pass an entire structure to functions?

1117


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2322


Explain what is output redirection?

1192


Who developed c language?

1089


What is 1f in c?

2651


What is the difference between a function and a method in c?

1080


What is header file in c?

1068


What is s or c?

1061


Why void is used in c?

1017


Why we use int main and void main?

1073