#Your favorite C book.

39 messages · Page 1 of 1 (latest)

grave kite
#

I would like to get some recommendations of C books. Focusing on C99.

frigid galeBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

misty sluice
#

Don’t know much tho

#

Trying asking on the C discord server

grave kite
#

same. beware that its c89 tho

sharp surge
#

C99 is ancient, focus on C11 instead.

grave kite
#

i thunk the differences are minimal

#

and a beginner wouldnt use threads much till later on

sharp surge
#

_Atomic

grave kite
#

Basically I know nothing about standards

sharp surge
#

If you don't specify a standard explicitly then compilers nowadays will default to C18

#

gcc and clang do

#

The idea that is popular in some circles that C11 is an intimidatingly new and unreliable level of standards support is comical

grave kite
#

But most books are even more ancient. What do I do?

sharp surge
#

Many such people don't specify gcc -std=c11 or anything, thus they compile in C18 mode unknowingly

sharp surge
#

I was mainly talking about the standard level in practical use

grave kite
#

what do you think about ANSI standard books as main source of wisdom and learning? 🙂

sharp surge
#

In real life you will probably just use a compiler that supports a recent standard by default

grave kite
sharp surge
#

Heh, you might pick up unnecessarily tedious habits from old books (like avoiding declarations in a for loop i.e. for (int i = 0; ...))

#

The best resource is cppreference

#

It has almost everything, and you clearly see every feature's standards support

grave kite
#

where I should look for C std lib compatible with C18?

sharp surge
#

Every libc is except maybe microsoft

weary egret
#

e

grave kite
#

to be clear, im not saying threading is bad or beginners would never need to learn threading with c11/c17 or pthreads or somth

#

just that its not a huge issue if they learn it later

#

but learning c89 or god forbid k&r c is def bad for a beginner (unless they do it for historical value and learn how c started out)

#

i just went to cppreference and found out c11 got more features like alignment and unicode so thats cool

#

will def look into learning it sometime

sharp surge
sharp surge