What can C do, that C++ cannot do (or can do but with far greater difficulty)?
Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga.
Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus.
Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
lol..Well..to be frank agdgdgdgwngo, I thought it was the other way round..I thought C++ was more efficient and advanced when compared to C.
Maybe its just my ignorance, but yeah, I sure would like to know this too.
I always liked C++ when compared to C.
Who would like scanf printf stuff when compared to some neat cin cout :D
The answer is: nothing. C++ compilers can also compile C - as such, C is a subset of C++, and anything that can be done in C can hence be done in C++ :P
C is perceived to be more efficient. C++ is much less used in embedded systems where performance is very important. I don't know whether C++ has been measured to be slower, or whether developers are simply staying with a language that they know how to write fast code in. Example, the VxWorks real time operating system was entirely written in C the last time that I looked.
Not the answer you are looking for? Search for more explanations.
C isn't exactly a subset of C++: http://stackoverflow.com/questions/1201593/c-subset-of-c-where-not-examples
but beyond those features, and the fact that C compilers can be much simpler than C++ compilers, and that "C is faster" (which depends a lot on the compiler), I would say that C++ is far richer than C :(
C++ is a superset of C. Stoussup described as a "better" C. C++ would be slightly slower than C, there are runtime data structures that C++ keeps that C doesn't.
If you're thinking about runtime type ID and exception=handling structures, yes. I can't think of any others. And a good compiler or informed programmer can avoid them.
Did you, have other structures in mind?
Those were the ones that I was thinking of. The difference wouldn't be too significant, but I think systems programming will probably lean towards C and applications toward C++.