Differences in languages.

With the wealth of features C++ offers over C, it's important to note the various ways in which their features are different. For instance, a string literal in C++ isn't the same as the string datatype. Also, C-style strings are different than both!

Code:
string s1;
string s2 = "I am a string";
char str[20] = "I am a string";

I've only listed one amongst hundreds of nuances. I think it's more of a personal choice to dive deep into a language and fish out interesting notes of these types. When I'm done with these two languages, I'll have to post my opinions - in detail.

No comments: