PDA

View Full Version : C standard verision on which "C How to Program" Deitel's books are based.



gambarimas87
01-06-2015, 06:47 AM
Hey guys. I often use C language to make programs as part of my PhD studies. I'm physicist an work on Linux, so I use GSL library (it has a lots of C written functions for making practically anything in Mathematics using C). This library is fully based on the C89 standard. So, my questions is concerned about on which C standard are based the famous books (several editions) written by Paul Deitel and Harvey Deitel, I meant specifically the “C How to Program” series.
I'm concerned about that because it is important for me write all my code in a portable way and strictly based on the C89 standard, which is the one used by the GSL. I would like to use the mentioned book as reference for my C projects.
Thanks in advance :)

grumpy
01-06-2015, 07:32 AM
GSL may be written to be C89 compliant, but that doesn't mean you need to stick to C89 compliance to use it. More recent standards are mostly backward compatible to C89 or tightened things up (which means code written to C89 will probably build with a more recent compiler), at least with regard to things that would be relevant to GSL (passing arrays, numerics, etc).

Odds are, you'll find yourself using gcc. Look up compiler (command line) options related to standard support, as well as warning levels.

I've never personally read the books by Deitel&Deitel, so can't comment on how good or bad they are. However, bibliographical information I've seen suggests that later editions were updated in line with more recent standards.