what_standard_types_does_c_sharp_use

What Standard Types Does C# Use?

Return to C# Topics

C# supports a very similar range of basic types as C++, including int, long, float, double, char, string, arrays, structs and classes. However, don't assume too much. The names may be familiar, but many of the details are different. For example, a long is 64 bits in C#, whereas in C++ the size of a long depends on the platform (typically 32 bits on a 32-bit platform, 64 bits on a 64-bit platform). Also classes and structs are almost the same in C++ - this is not true for C#. Finally, chars and strings in .NET are 16-bit (Unicode/UTF-16), not 8-bit like C++.”

Fair Use Source: B07L7H6BFH

what_standard_types_does_c_sharp_use.txt · Last modified: 2024/04/28 03:23 (external edit)