1.

What Do You Mean By Saying A "struct Is A Value Type"?

Answer»

A STRUCT is a value TYPE mean when a struct is created, the variable to which the struct is assigned holds the struct's actual data. When the struct is assigned to a NEW variable, it is copied. The new variable and the original variable therefore contain TWO separate copies of the same data. CHANGES made to one copy do not affect the other copy.

A struct is a value type mean when a struct is created, the variable to which the struct is assigned holds the struct's actual data. When the struct is assigned to a new variable, it is copied. The new variable and the original variable therefore contain two separate copies of the same data. Changes made to one copy do not affect the other copy.



Discussion

No Comment Found