Trying to get started in C

Does anyone know of any good resources with tasks or problems to get practice on things that are โ€œnewโ€ in C from the perspective of someone with experience working in high-level languages โ€‹โ€‹such as C # and PHP? All I can find is more โ€œproblemsโ€ than problems for practice.

Thanks.

+4
source share
9 answers

You can try thinking in C with Bruce Eckel.

It is absolutely free and available to download from its website.

+5
source

As others have said, read K & R.

Pay particular attention to pointers, structures, unions, bit fields, typedefs, and the C preprocessor. Pointers and pointer arithmetic are very important.

Read the manual for preprocessor C.

Learn to write make files. Read the manual for your version of make.

+3
source

K & R is deprecated.

I prefer C Primer Plus 5th Ed by Stephen Prata ISBN: 0-672-32696-5

It covers the C99.

+1
source

C bible is assumed.

0
source

Problem Solving and Program Design in C

by

Jerry R. Hanley, Elliot B. Coffmon, and Frank L. Friedman

0
source

Get away from The Standard C Library by PJ Plauger, since 1991. It alternates quotes from the standard (C89, I think) with a discussion of how the library functions should have been used, as well as a fully described implementation of the full standard C library. Source code is also included.

Yes, the book was not updated according to the latest standard, but it is still of great importance, explaining at least some of the justifications for some oddities of the standard library. By the way, Plauger was on the standards committee.

Plauger has written a number of classic books in both C and earlier versions of Unix. Track and read the oldest tasting backstory of C ...

0
source

Given your previous programming experience (C #), I think you don't need a book that talks about how to program, but the subtleties and subtleties of C. I would recommend the following:

  • Prentice Hall - ANSI C 2nd ed. Brian W. Kernigan and Dennis M. Ritchie. On the main issues.
  • Prentice Hall - expert programming C. Deep C Secrets.
  • ISO - C 99 Standard - Final. Very useful for many doubts and questions.
0
source

The source of problems for the solution that have known answers is Project Euler .

This is not C itself, since there is definitely a mathematical orientation to the problems posed. However, an honest attempt to solve a significant number of them will require advanced training with structures, pointers, a standard library, and thinking about things so that they work well in C.

Another resource that often seems to be missed is that MIT invests most of its curriculum on the Internet. Their EE / CS department is no exception. Class Introduction to algorithms may be one of the suitable options. The textbook is an introduction to algorithms, the second edition, Cormen, Leiserson, Rivest and Stein, which are quite well written in the form of text books. I did not exhaustively look through the list of courses, so I am sure that there are other gems.

0
source

All Articles