172k views
0 votes
How to create a structure using c# programming

1 Answer

7 votes

Answer:

The answer to this question is given in the explanation section.

Step-by-step explanation:

C# uses the struct keyword to declare structure.

The are used to store related data item.

For example the record of Student i-e his name, father name, address and class no can be declared using structure

using system

struct Student {

public string name;

public string father_name;

public string address;

public int class_no;

};

User Mcastle
by
5.3k points