Similarities between C and C++ are: Both the languages have the same syntax. Code structure of both the languages are same. the compilation of both the languages is about the same (not 100% sure, but it should be given that syntax & grammar are similar) They share the same basic syntax. Nearly all of C’s operators and keywords are also present in C++, and do the same thing. grammar, although C++ has a slightly extended grammar than Ruby that is all the OOP features introduce a few new operators but they both are similar else. Basic memory model of both is very close to the hardware. Same notions of stack, heap, file-scope and static variables are present in both the languages. Main Differences: C++ can be said a superset of C. Mainly added features in C++ are Object Oriented Programming, Exception Handling and Richer Library. Detailed Differences between C and C++ are: C C++ C was developed by Dennis Ritchie between the year 1969 and 1973 a...
Comments
Post a Comment