S
Steve Pope
Bart said:Steve Pope wrote:
There's a huge gap between 'memorized' and 'mastered'.
Sure, but the former is a prerequisite for the latter.
C is not a subset of C++. Lets see... reserved C++ keywords, void* not
being cast implicitly to other pointer types in C++, implicit
declarations of int returning functions in C, different semantics for
const objects, different rules for struct names and scope, character
litterals having type int in C and type char in C++, I could go on like
this...
It's a fairly limited list. But you're right, C isn't a true subset
of C++ due to this handful of necessary changes.
Not at all. C may actually be detrimental to your learning of C++ as it
may be necessary to unlearn things.
I disagree. Most of the things that would need "unlearning" would
only seep in if you did lots of development in C, forcing you to
use C-style coding practices. Simply learning the language would
not be detrimental to C++, and in fact is pretty necessary.
Steve