Y
Y
yeputons2011-02-24 20:14:42
Books
yeputons, 2011-02-24 20:14:42

A C book without conio.h and with pointer parsing and memory leaks?

Good evening
I myself know C/C++ quite well. I looked at several books at random in the store - they all say that a string is an array of characters and is declared a "magic" char* . Conio.h is also actively connected and used - in general, TurboC. I would like to find a book where, in addition to magic, there are explanations of what pointers are, what memory leaks are, why strings cannot be added with the + operator , unlike Delphi, which is contained in * .h files and other phrases in the style of “how and why it works ' rather than 'do this and that'.
Question: I need a small book that has it all. Tell me please.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
MikhailEdoshin, 2011-02-24
@MikhailEdoshin

Kernighan and Ritchie are usually advised . Although, I confess, I have not read them :(

B
Bright, 2011-02-24
@Bright

K&R. It can be said that this is not only the main book on C, but also one of the fundamental books on programming.
There is no “magic”, everything is explained, although it is not chewed (but the book is small). From there you can also find out that “what are pointers, what are memory leaks, why strings cannot be added with the + operator” - three closely related questions =)

A
Anton Kossov, 2011-02-24
@tony

K&R. And in general, any canonical book on programming in C [under UNIX].

D
Deimus, 2011-02-25
@Deimus

I advise you to read "Scott Meyers - Effective use of C ++" and "Herb Sutter - Complex tasks in C ++", they are written for C ++, but some of the pointers are very good for C, so I think the best option for in-depth study .

D
dmomen, 2011-02-24
@dmomen

It's hard to believe that you know C/C++ well enough and don't know Stroustrup's books.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question