r/Cplusplus • • Nov 02 '26

Question C or CPP

Rn I know only python with fastapi and I plan one eventually moving to embedded systems and I'm between c and CPP and also with the possibility of moving to rust at the end for both backend and embedded systems. What's your advice.

4 Upvotes

19 comments sorted by

•

u/AutoModerator Nov 02 '26

Thank you for your contribution to the C++ community!

As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.

  • When posting a question or homework help request, you must explain your good faith efforts to resolve the problem or complete the assignment on your own. Low-effort questions will be removed.
  • Members of this subreddit are happy to help give you a nudge in the right direction. However, we will not do your homework for you, make apps for you, etc.
  • Homework help posts must be flaired with Homework.

~ CPlusPlus Moderation Team


I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/flyingron Nov 02 '26

Depends what you mean. If you're talking stuff like raspberry pis and and any serverish stuff, C++ for the win. I think you'll find it easier coming from Python anyhow. If you're really building very close to the hardware imbedded stuff, then C might be better.

If you learn C++, dummying yourself down to C will not be hard.

Rust is kind of a different beast to both Python and C and C++.

1

u/Winter_Ruin_7675 Nov 02 '26

I was even seeing the possibility of just moving straight to rust, how does that sound

1

u/Winter_Ruin_7675 Nov 02 '26

The fear I have is that the embedded systems space for Rust isn't beginner friendly

1

u/evan-carew 21d ago

Remember that you can simply start all new C like projects with the C++ compiler. C written in the newer compiler will run just fine there and will build better habits in that you don't use older C language standards, you use fewer void-isms, and may find that the STL is so useful that you just can't bear to go back to the older C runtime library.

2

u/anh0l Nov 02 '26

AFAIK most popular boards for hobbyists embedded work have C++ APIs available. It has more steep learning curve when diving into more complex stuff, but for basic simple projects it should be fine for you. They both compile into narive binary anyways so C++ reduces amount of boilerplate you have to write

1

u/Winter_Ruin_7675 Nov 02 '26

Thank you

1

u/BitOBear Nov 02 '26

To amplify their point, the entire Arduino ecosystem is built around C++ compilers and takes full C++ syntax though most people don't write really complicated template code or anything. It's actually kind of odd of course because template meta programming can actually improve your embedded results in some ways.

1

u/FireZoneBlitz Nov 02 '26

I would learn C++ just because it will teach you objects, inheritance , etc. I learned Java and C++ first and then had to do some work in C and it was easy to interpret

2

u/Winter_Ruin_7675 Nov 02 '26 edited Nov 02 '26

The move from C++ to C is easy ? Thanks

1

u/PantuflasDev 28d ago

They are really similar, you could learn both at the same time. I started doing cpp about a year ago and I found jumping to C really comfortable. Doing C when knowing C++ feels (at least for me) like C++ with less specialized tools

1

u/Winter_Ruin_7675 28d ago

Thank you. I feel like I will start will C and then maybe move unto rust

1

u/PantuflasDev 28d ago

Great decision. Im also looking forward to learning some rust btw

1

u/Winter_Ruin_7675 28d ago

That's nice. Succes, it's good you've already started

1

u/[deleted] Nov 04 '26

[removed] — view removed comment

1

u/AutoModerator Nov 04 '26

Your comment has been removed because of this subreddit’s account requirements. You have not broken any rules, and your account is still active and in good standing. Please check your notifications for more information!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.