B
B
Ben_r0072018-10-19 22:52:51
C++ / C#
Ben_r007, 2018-10-19 22:52:51

Should I learn C before C++?

Hello.
I recently came to the conclusion that one way or another, but I will have to learn C / C ++ for some tasks. The key reason I continued to study now is the interest in robotics programming.
I know that both C and C++ are used there. In Arduino, for example, C.
Yes, and there are other tasks where libraries written in C are used.
Does it make sense in my case before C to learn C++? Or if not, why not?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Antonio Solo, 2018-10-20
@solotony

To a first approximation, C++ can be viewed as a superset of the C language. at the expense of libraries - you from C ++ can link C libraries without problems.
languages ​​rather differ in the programming paradigms they use. If you are programming in C++ then nothing prevents you from writing "in C style". therefore, if there is no specific task to program in C (that is, to shove bits at addresses and ports), then I think that it is not worth studying it separately.

R
regular person, 2018-10-19
@datarmatan

in programming for MK, the main language is C
after C, you can easily master C ++
if you are an amateur robotics, then you can use iskra.js - from the pros: js has built-in convenient timeouts and intervals
js is easier and more convenient than C
js works everywhere - mk desktop mobile site server
is conveniently
one language for everything

V
Vladimir T, 2018-10-20
@32bit_me

Not required, but learning C is useful in and of itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question