4 ms·
Thanks for the heads-up. Is C really that different now that I need to worry about it? I have done some work in C++ before, but that was many years ago and I've
by aarongough 16y ago
Thanks for the heads-up. Is C really that different now that I need to worry about it? I have done some work in C++ before, but that was many years ago and I've grown accustomed to high-level languages...
- mahmud 16y agoNo it's not that different. GCC still compiles 1978 C.
- aarongough 16y agoGood thing I'm using GCC then! Thanks Mahmud!
- jfr 16y agoIn essence, it is the same language, just that it evolved considerably since then. There are places where you could really use a more current reference. For example, the book instructs you to define the main function like: main(){ /* ... */ } This is considered bad code style for todays standards. It doesn't state the return value (it defaults to int) and it leaves the argument list open (you can pass any number of arguments to the function). In other places, it puts restrictions that are no longer relevant today. For example, since C99 (and most compilers allowed this long before C99) you can declare variables anywhere inside a block (which is pretty handy), and not just at the beginning of the function.
- woadwarrior01 16y agoIts the same, but C99 adds a couple of neat features like boolean types, variable length arrays, variadic macros, inline functions and a lot more.