C Programming Structure and Union Quiz

C Programming Structure and Union Quiz

Structure and Union

C Programming Structure and Union Quiz

Structure :

Structure is a collection of (Homogeneous )  Date Items of Different Type, It collects a Unique name, Structure using the Keyword Struct

Declaration of Structure :

Struct Name

{

Type 1 Data 1;

type 2 Data 2;

.

.

.

Type n Data n;

}

Example :

Struct student

{

Int Reg-No;

Char Name[30];

Int Semester[20];

}

Union :

Union is a collection of Heterogeneous elements  using the Keyword Union, C Programming Structure and Union Quiz

Declaration of Union:

Union union-name

{

Datatype 1 Item 1;

Datatype 2 Item 2;

.

.

.

Datatype n Item n;

}

Example :

Union Number

{

Char Name[30];

Int Semester[20];

}

Govt jobs 

0
Created on By wefru

Structure and Union

TEST YOUR BROAD SKILLS

1 / 10

Q.31 The memory allocation function modifies the previous allocated

2 / 10

Q.32 Number of binary trees formed with 5 nodes are

3 / 10

Q.33 The "C" language is

4 / 10

Q.34 The worst case time complexity of AVL tree is better in comparison to binary search tree for

5 / 10

Q.35 In which tree, for every node the height of its left subtree and right subtree differ almost by one?

6 / 10

Q.36 C is Language?

7 / 10

Q.37 The Default Parameter Passing Mechanism is called as

8 / 10

Q.38 What is Dequeue?

9 / 10

Q.39 In which linked list last node address is null?

10 / 10

Q.40 Which is the correct syntax to declare constant pointer?

Your score is

The average score is 0%

0%

Leave a Reply

Your email address will not be published.