4 ms·
Of course, same code compiles into same asm, but in original article author is comparing different source code for C++, which includes iostream and stdlib.h.
by butz 4y ago
Of course, same code compiles into same asm, but in original article author is comparing different source code for C++, which includes iostream and stdlib.h.
- pjmlp 4y agoNope, he uses C code that is also valid C++, to produce an argument why C better than C++. > A simple C program might print ‘hello world’ on screen: > .... > You can write the equivalent in C++: He could keep using his original C example and simply change from gcc into g++. But then he wouldn't be able to use "C is better than C++", when using stdio for both languages.