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

Can you please explain the difference between malloc() and calloc() function?

1124


What is cohesion in c?

983


What are variables c?

1055


In a byte, what is the maximum decimal number that you can accommodate?

1142


Explain modulus operator. What are the restrictions of a modulus operator?

1020


Is c still relevant?

1087


Explain what are header files and explain what are its uses in c programming?

1160


c program to compute AREA under integral

2407


Write a C program in Fibonacci series.

1092


What is derived datatype in c?

1099


Do you know what are the properties of union in c?

1082


You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.

2340


Explain the difference between malloc() and calloc() function?

1056


What does malloc () calloc () realloc () free () do?

1066


What is hash table in c?

1025