J
J
josser2011-07-14 13:37:30
C++ / C#
josser, 2011-07-14 13:37:30

Learn to program in C

Folks, how did you learn to program in C?
From school, I followed the path: Logo -> Pascal -> Basic -> PHP -> JS

I really want to understand C, but I don’t know where to start. I already have a huge experience in PHP (More than 6 years), but no matter how much I tried to take up the study, I always run into the same problem - I need a real task so that my hands do not give up and self-motivation turns on.

Help with a student problem?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
G
Gribozavr, 2011-07-14
@gribozavr

Until you read and understand at least half of K&R, you won’t be able to start solving a real problem: C is not the language where “I took it and started writing following the example in the book”. Without understanding the principles of the language, you won't even be able to work with strings. So take K&R and just solve the problems that are at the end of each chapter.

D
dima_eam, 2011-07-14
@dima_eam

At my old job, I wrote controllers for various devices through a COM port in Linux, just in C.

S
SeriousDron, 2011-07-14
@SeriousDron

Kernighan-Ritchie, of course, has not been canceled and you should read it, a very useful book. But there is another interesting point. C, unlike everything you have studied, is a rather low-level language.
In fact, it is simple, minimalistic, and all its constructions are quite simply and obviously translated into assembler. This is where problems with understanding pointers and so on follow.
So, in order to understand the same pointers, it would be good to read something about the device of a computer, or maybe even program a little bit in assembler.

S
slang, 2011-07-14
@slang

It's simple though! Write a PHP 8 interpreter)

D
dima_eam, 2011-07-14
@dima_eam

I'll fit in too

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question