By using this site, you agree to our Privacy Policy and our Terms of Use. Close
NJ5 said:
radha said:

ok this is what i have been trying to say: from the compiler point of view it is a subset, because is compatible on a c++ compiler, but to someone learning is not true, he will get confused.  i dont think that someone that knows c++ knows c, different memory allocation, different use of strings, etc. I want to see some beginner that only knows C++ Compaling in a C compiler.

 

This all started when Rpruett said that C is cryptic when compared to C++. I very much disagree with that, and I explained why.

Of course it's possible to write cryptic C code, but that doesn't happen due to the language itself which is a part of C++ (with very rare exceptions which don't make it more cryptic anyway). To say C is cryptic and C++ isn't doesn't make sense, that's all I said.

 

I didn't say C++ couldn't be or wasn't cryptic in some senses. It's just LESS cryptic than C for a beginner especially.

As a pure blank slate. Learning to program?  Straight C is more confusing and cryptic to most than C++ (Even if a lot of it is identical). ( I know it was for me).  Even something simple like a printf outputting a variable is more confusing than a cout with the same.