Data structures is a set of data organized on the basis of logical and mathematical laws. Very often the choice of the right data structure makes the program much more efficient and we could save memory and execution time
To define a structure, you must use the struct statement. The struct statement defines a new data type, with more than one member for your program.For example, here is the way you can declare the Computer specification structure:
struct Computer
{
public string cpu;
public string mbd;
public string gpu;
public int ram;
public int hdd;
};
|
It's a special area where you can find special questions and answers for CSE students or IT professionals. Also, In this section, we try to explain a topic in a very deep way.