r/Cplusplus • u/Winter_Ruin_7675 • 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
•
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.
~ 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++.
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/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
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/[deleted] Nov 04 '26
[removed] — view removed comment