how does c++ and c# differ
Where C# is just different from C++. value types and reference types exist (struct is value-type, class is reference-type) value types live on the stack, reference types on the heap; references can point to null (must not be valid) code is packaged in assemblies in C#; no automatic conversion from int to bool in C#; main-function is called Main in C#