2 ms·
The exact meaning of the statement "C is efficient" is that there is no built-in overhead: no virtual machine, no garbage collector, etc. Incidentally, the same
by Koshkin 10y ago
The exact meaning of the statement "C is efficient" is that there is no built-in overhead: no virtual machine, no garbage collector, etc. Incidentally, the same is true for C++, with its mantra "you don't pay for what you don't use", except that there is a caveat: the mindless using of the C++ standard library classes could easily result in a significant overhead - mostly as a consequence of a liberal use of the heap for memory allocation. (But therein also lies an advantage: you could write C++ as if it was Java and still get a better efficiency.)