TAB

C-Programming Objective Questions on Structures, Unions, Enums

C-Programming  Structures, Unions, Enums

Hello Friends,
  • A structure in C programming language is a structured (record) typethat aggregates a fixed set of labelled objects, possibly of different types, into a single object.
struct account {
   int account_number;
   char *first_name;
   char *last_name;
   float balance;
};
  • In computer science, a union is a value that may have any of several representations or formats; or it is a data structure that consists of a variable which may hold such a value. 
union {
      int d;
      char f;
   }; 
  •  In computer programming, an enumerated type (also called enumeration or enum, or factor in the R programming language, and a categorical variable in statistics) is a data type consisting of a set of named values called elements, members or enumerators of the type. 
For example, the four suits in a deck of playing cards may be four enumerators named CLUB, DIAMOND, HEART, SPADE, belonging to an enumerated type named suit.  

    suit: (clubs, diamonds, hearts, spades);
 
 In Interview these kinds of questions will be asked in written Technical Round.
All type of questions which will be asked in written Technical round based on this topic is uploaded.


C-Programming  Structures, Unions, Enums

 If the Download link Appears to be broken or not Available please Comment Here or      Type your mail ID.
I will Share The Link Again or Mail You.

              Subscribe for Daily updates  And Join The Fresher Station Facebook Group.

No comments:

Post a Comment

Related Posts

Related Posts Plugin for WordPress, Blogger...