[C language] Introduction: Programming Exercises

I’m taking lessons from Stephen Prata’s book “C Primer Plus”. I have a book from 2000, which is very relevant to me, since the project I plan to work on adheres to the ANSI C standard. But in the process of going through the lessons, I got into the habit of taking additional exercises from the book of a later edition (2014); there are more tasks and some of them are very entertaining. Even in the old edition, there are a huge number of errors and typos, so peeping into the modern version sometimes helps to fix jambs.

I will keep my notes here on the material covered and post the “passage” of the exercises. At the beginning, it was rather lazy to post something on the blog, there were very simple things, but now I thought – why not 🙂 There are no “answers” to the exercises in the book, so the info can be useful. In the vastness of the network, people post their options for completing tasks, but there is no “conclusion” that can be useful to beginners. I also noticed that there are 100500 ways to write programs and my curly code is often different than other beginners, so it’s interesting to share it 🙂

Unfortunately, I did not keep my original version of the solutions to tasks from 1 to the end of the 4th chapter – I stupidly fulfilled them and did not save them; the first task, from which I will start laying out directly the programs that I am writing now, will begin with Chapter 4, task 7 (according to the new edition, there is no such task in the old one).

A few words about my system: I’m running Windows 7 64x in Borland C++ Builder 6 – the original version on two disks. Why she? Because .. the answer is as usual banal – the project on which I will work (and for which I study C) is built under this version of the IDE. I’m very fond of open source and will later be happy to port the project to CodeLite for example, but for now I will use Borland. In general, as I understand it, there is absolutely no difference in which IDE to learn, the main thing is that the compiler compiles, and the syntax is highlighted 🙂

A curious “jamb” of the Russian translation of Stephen Prata’s book “C Primer Plus” is that the programs in the listing are also translated. Therefore, I will provide all source code examples in English. In addition, in the process of reading this book, I also periodically refer to the original source, because. Russian translation distorts some terms, which in English, oddly enough, are more understandable. But nevertheless, it is pleasant to read this book in Russian, so great respect to the translators!

I will be glad to see your comments!

This entry was posted in C language (en). Bookmark the permalink.

Leave a Reply

🇬🇧 Attention! Comments with URLs/email are not allowed.
🇷🇺 Комментарии со ссылками/email удаляются автоматически.