Essential C
11–20 of 57 posts
Re: Essential C
#12I recently started a graduate course that originally required C++. My only exposure to C++ basically went through the fundamentals of the C part without getting to any of the ++. Is there something similar to this for C++? I understand that C++ is a much larger language and I'm definitely not looking for something comprehensive, more of a solid overview of a workable subset of the language. Enough to be productive, p…
I'd recommend A Tour of C++, by Bjarne Stroustrup. http://www.stroustrup.com/Tour.html
Re: Essential C
#13Essential C doesn't mention a standard but it says Copyright 1996-2003 . I'm going guess it hasn't been updated for C11. Modern C [1] covers C11 and was mentioned before. However, it weighs in at 300 pages rather than Essential C 's 45. [1] http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf Actually, reading through Essential C , it hasn't really been updated for C99 since it uses C89 declarations: C takes th…
Re: Essential C
#14Essential C doesn't mention a standard but it says Copyright 1996-2003 . I'm going guess it hasn't been updated for C11. Modern C [1] covers C11 and was mentioned before. However, it weighs in at 300 pages rather than Essential C 's 45. [1] http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf Actually, reading through Essential C , it hasn't really been updated for C99 since it uses C89 declarations: C takes th…
I don't know if I would count any part of C11 as "essential", particularly given its still-spotty implementation coverage.
Re: Essential C
#15I recently started a graduate course that originally required C++. My only exposure to C++ basically went through the fundamentals of the C part without getting to any of the ++. Is there something similar to this for C++? I understand that C++ is a much larger language and I'm definitely not looking for something comprehensive, more of a solid overview of a workable subset of the language. Enough to be productive, p…
"Effective C++" by Scott Myers
Re: Essential C
#16Essential C doesn't mention a standard but it says Copyright 1996-2003 . I'm going guess it hasn't been updated for C11. Modern C [1] covers C11 and was mentioned before. However, it weighs in at 300 pages rather than Essential C 's 45. [1] http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf Actually, reading through Essential C , it hasn't really been updated for C99 since it uses C89 declarations: C takes th…
I don't know if I would count any part of C11 as "essential", particularly given its still-spotty implementation coverage.
Re: Essential C
#17Maybe I'm just a grumpy old programmer, but I feel like kids these days are missing out on something important by learning to program in a language that doesn't require them to truly grok memory management.
Re: Essential C
#18I recently started a graduate course that originally required C++. My only exposure to C++ basically went through the fundamentals of the C part without getting to any of the ++. Is there something similar to this for C++? I understand that C++ is a much larger language and I'm definitely not looking for something comprehensive, more of a solid overview of a workable subset of the language. Enough to be productive, p…
Re: Essential C
#19Earlier quoted context omitted.
I don't know if I would count any part of C11 as "essential", particularly given its still-spotty implementation coverage.
A lot of code is still written in C89 for maximum portability, and I regularly do that. The only thing I really miss from C99 is the mixed declarations and code, but you can instead use nested scopes or just move the declarations up to the top.
Meanwhile, in terms of C11 [update: actually also from C99] I actually wrote a function with a signature like
void func(int arg[static 3]);
but later removed it because (a) the generated code was the same, and (b) rather than increasing clarity and self-documentation, it caused confusion; even when you're familiar with the feature, it never stops looking like a syntax error.Re: Essential C
#20Earlier quoted context omitted.
A lot of code is still written in C89 for maximum portability, and I regularly do that. The only thing I really miss from C99 is the mixed declarations and code, but you can instead use nested scopes or just move the declarations up to the top.
C99 object literals are also fantastic. I feel very constrained when I have to use strict C89. Meanwhile, in terms of C11 [update: actually also from C99] I actually wrote a function with a signature like void func(int arg[static 3]); but later removed it because (a) the generated code was the same, and (b) rather than increasing clarity and self-documentation, it caused confusion; even when you're familiar with the…