C Language - Structures,Unions

You Are Here :: Home > C Language > Structures,Unions General Questions

 
55.

struct employee_rec {

char name[30];
int dependents;
float pay_rate;
} full_time, part_time;
The tag of the structure is

A. employee-rec B. name
C. full_time D. part_time




56.

main()

{
struct
{
int i;
}xyz;
(*xyz)->i=10;
printf("%d",xyz.i);
}
What is the output of this program?

A. program will not compile B. 10
C. 0 D. address of I




57.

What will be output of following program?

void main()
{
typedef unsigned long int world;
world a=45;
printf("%d",a);
}

A. 0 B. 1
C. 45 D. error




58.

The union data type was invented to prevent ___________ fragmentation.

A. Input B. Output
C. Memory D. CPU




59.

_____________ is user defined data type used to stored data under unique variable name at single memory location.

A. Structures B. Pointers
C. Unions D. Variables




60.

Structure members can be accessed using ________ operator.

A. comma B. semicolon
C. dot D. and




« previous

10

11

12

next »

 
 
 



© 2013 freshersindia.in ® | Copyrights | Terms & Conditions
   Designed by Freshers India
Catch Us on