S
S
sad___guy2021-09-21 14:55:12
IT education
sad___guy, 2021-09-21 14:55:12

How to start learning C as a pythonist?

I write code in python, and I seem to write well. But in the first year of university, it is mandatory to write in C.
I would like not to start with some books where everything is explained from scratch, but to read something where, for example, there are analogies with python and so on. Are there such books? If so, please write down the names.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vasily Bannikov, 2021-09-21
@vabka

It’s better to take a book, where everything is explained from scratch, because there are a whole mountain of fundamental differences between python and C.
Obvious or uninteresting moments can always be skipped.

A
Armenian Radio, 2021-09-21
@gbg

Forget about Python.
The difference between languages ​​(OOP with dynamic typing versus structured programming with static typing and low-level pointers = no way, not at all) is too great to drag knowledge from the first to the second.
Only general programming knowledge of standard constructions (loops, branches, functions, recursion, code block) can be useful.
Moreover, dragging language habits from one language to another leads to the fact that you choose oblique / crooked solutions instead of the accepted ones in the language. It's like speaking Russian using English language and grammar. When you hear all sorts of things in the series:
"You're going to work, aren't you?" - this is just it. Nadbrain did not translate into Russian the standard English interrogative construction, resulting in nonsense (do Russians really speak like that in everyday life?), which can easily be used to restore the original English text.

R
Rcd, 2021-09-21
@2228rcd

"The C Programming Language" B. Kernighan, D. Ritchie

D
denizen, 2021-09-21
@denizen

Start by buying headache pills. When learning C after Python, getting rid of the headache will be the biggest problem. And yes, Kernighan and Ritchie.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question