C# Data Structures Interview Questions and Answers - 1

Question: 1

Define structure?

Structures often refined to as structs are similar to classes in C#.

It provides a unique way of packing together data of different types.

It is a convenient tool for handling a group of logically related data items.

Question: 2

What is called nested structure?

In C#, the creation of a structure with in another structure is allowed. It is called as nested structures.

Question: 3

Define enumeration?

An enumeration is a user defined integer type which provides a way for attaching names to numbers.

The following code shows the example for enum.

Error Report!

Related Questions
Recent Articles
Trending Posts

REGISTER TO GET FREE UPDATES