Interviews2 answers
Are C++ and C# structure the Same.?
2 Answers
No
Yogesh SevankarPosted Oct 17, 2019, 10:36 PM EDT
NO.In C++ struct Defines a class type. So Struct and class are nearly Same in C++. the difference is that the members of class are By Default private and Members of struct are By Default Public. But in C#, C# defines a value typeand Class Defines a reference type.
Piyush chhabraPosted Apr 18, 2015, 9:02 AM EDT
