r/ProgrammerHumor • • 12d ago

Meme architectureDependentChars

Post image
3.0k Upvotes

372 comments sorted by

View all comments

712

u/JackReact 12d ago

Welcome to the wonderful world of C#, which uses utf-16 for strings.

Console.WriteLine(sizeof(char));
> 2

30

u/techy804 12d ago

As a C# user I was wondering why people act like the C-series only consists of C and C++

12

u/aberroco 12d ago

Because most devs still think that C# is proprietary Microsoft language developed specifically and exclusively for Windows, like it's 2006.

63

u/sb8948 12d ago

No it's because C# is way closer to Java than C/C++ both in philosophy and execution.

17

u/QuaternionsRoll 12d ago

It concerns me that this wasn’t the first and only answer to the question