Are you trying to decide between learning C++ or C#? In this video, Chuck breaks down the core differences in memory management, execution, syntax, and object-oriented features. Developers, software engineers, and project managers often ask which language they should learn or use for their next project. This comparison highlights the strengths, weaknesses, and ideal use cases for each language so you can make an informed decision.
What You’ll Learn:
– How C++ and C# differ in memory management
– Execution environment differences
– Syntax and type system comparisons
– Generic and functional programming support
– Standard library differences
– When to choose C++ vs C# for real projects
Resources:
Full article on Udemy:
Training courses:
Udemy courses:
Keywords:
C++ vs C#, C++ vs C# comparison, which language to learn, C++ tutorial, C# tutorial, programming language comparison, C++ vs C# for beginners, C++ vs C# performance, .NET vs native development, C++ memory management, C# managed code, C++ or C#, learn C++ or C#, software development languages
0:00 Introduction
0:24 File Organization
1:21 Basics
2:38 Execution Environment
3:39 Type Specifiers
4:50 Memory Management
6:00 Generic Programming
7:05 Functional Programming
7:50 Inheritance
9:30 Standard Library
source

Thanks, this is a nice summary!
I love C and C# so torn between them… I just ended up making a project twice, one in C and then ported to C#
Learning C#? The next frontier is Agentic AI. I'm building a full course on the Microsoft AB-100 exam to show you how to build AI agents with C#. Check it out here:
https://www.youtube.com/playlist?list=PLXd94bZTzZ-SGw8yMHD44d9xKgMKTZUVF
been using C# since 2007; it's the best language I've ever used by far!!
The right answer is to learn both of them
I have a little background with learning C and I tried learning c#… I hate it lol. C++ is awesome to me lol
C++ vs Rust , C# vs Java , C vs C++
Thank you for this informative video. The last min was what I was looking for. C++ is better for game dev, and C# for web and desktop applications. Keep it up.
C# only
Im c++ at the moment (because of unreal) but for my own games ive been looking at godot. Im thinking that i might learn godot in c# so ill also have a more useful language in my pocket. I really c++ and I dont want to learn another pythonesque language. Thanks for the video. C## looks more invitig than gdscript. Got to get more proficient in c++ first.
C# is beautiful when it comes to developing Web or Dekstop applications. I cannot find other languages more efficient than C# for those particular tasks.
This is very good. Too many C++ vs. this or that comparisons usually start with the ridiculous C++ is old and dangerous and should be abandoned kind of stuff.
Thanks Dear
Can you do a comparison between C; C++; Rust; Zig; and an assembly — which is faster?
New sub here! Perfectly explained, thank you!👏🏽
Good video.
Interesting, and a good explanation. I've prgramed in both C++ and C#, and have found myself frustrsted at times with C#. I've ran into a few situations were what would be simple in C++ was not possible in C#.
Example: I had to modify an external library to do something that actually requied me to create a thread in it. The thread needed to finish its job before any application using it shutdown or the data would be lost. In C++ the thread would have to complete its job before it would stop processing. In C# the thread would just stop, regardless of its state at the time. Every mechanism, on paper, that was supposed to allow me some control over the thread in C# was bypast completely.
This comparison makes no sense. Two tools for two very different jobs.
c# all the way.
Well am an c enjoyer Sooo…
See more…
Very well explanation and differentiation.
8:28 hah, the standard library laughs in std::basic_stream
I spent sometime converting a C++ CLI service over to C#. In terms of syntax, I'll take C# over C++ CLI every time.
Both compilers/interpreters were written and are maintained by Microsoft. C# and C++ were written for different purposes, but each can be used to accomplish a given task. Why then did MS come up with a new language called C#??? What was the motivation behind that endeavor??? Can you answer that, objectively????
Thanks, sir for this robust overview
I’d rather stick with C.
But if you’d put a gun to my head, especially when working with others, I think I’d prefer Java++ 😂
To me, C# is far closer to Java than C or C++.
Actually you can force GC to collect earlier if you need in C#
C++ better than C# in performance and all other tasks except backend web
Great video, but….
Curly braces are a definite dealbreaker. Sorry!
This was very comprehensive, thank you.
make a video about your favorite c++ framework
It's not accurate to say that C# offers no control over the GC – there are 8 different methods on offer from C# 10. Plus in many performance critical scenarios it is possible to write allocation-free code. HIghly optimised C# can approach C++ for performance while being safer and easier to write – though obviously managed code can never compete on memory use for embedded applications – that's simply not what it's designed for.
As a Java programmer, this just makes me want to learn C# in conjunction with Golang.
Why not learn both ? C++ for low level and C# for scripting and prototyping. They are similar enough.
If you learn C# first, learning C++ may be more difficult, but it is a helluva lot more fun. Edit: At least it isn't that turd, Java. 🤮
I learned C# first since it was the language Unity using which I use for making my games.
3:10 No! This isn't true, and it's an important distinction and a common misconception (especially among C++ programmers, for some reason). C# compiles to native machine code, exactly the same as C++. The only difference is that it does it at runtime using the CLR's JIT compiler. There's no VM involved. All C# code runs directly on the hardware, exactly like C++. It just has extra hooks to trigger the compiler (including potentially multiple times).
In which language would you reccomend to start? I would like to start my journey in programming with one of this languages
Currently my tech stack is only web based things but I've really wanted to dig deep into other languages and working with the hardware more directly, been trying to learn C using GBDK (a library for writing gameboy games) which has been a huge be very fun learning curve! I've also been interested in learning C# just for job opportunities really, since I think I can probably pick that up faster and it seems to more there is a variety of work you can do with it. Even though I'm not looking at C++, I'm going down a bit of a rabbit hole of information here and absolutely loving it, really enjoyed the video.
Static vs dynamic is misrepresented in this video.
C# is the most beautiful language for me so that after 5 years of using it, I have no intent to switch to other languages.
You can call GC manually in C#.
I will start a basic programming course next year and I need to choose either C++ or C# (and get the specific text book that goes with it), but I am still confused on which one to chose.
I have no previous code experience, and my long term plans are try to get into IT and network positions where I work. Python is also something I should try start to learn too and maybe dig into Cisco stuff (but their courses other than expensive are not beginner friendly either). I understeand that the stuff to know in IT is infinite…but I gotta start somewhere. I've already done courses "similar"ish to the US Comptia A+ but I wish I started earlier 20 years ago.
Thnx for any advice.
What an amazing video, straight to the point and very informative, thank you!
One of them wants to make you oof yourself one of them is hard to learn but easy to use
I really need to wrap my head around C++ better. I’m a game dev with experience in C# and whilst I love it I really feel like there is an upper limit to the efficiency so I am trying to learn the other side. Pointers and garbage collection are the two bits I get really lost on!
To be hornest I'm fine with c xD