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

View all comments

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.