3 ms·
> writing C++ does not automatically make your code bloated Sorry, but it does.
by 0xdead 7y ago
> writing C++ does not automatically make your code bloated
Sorry, but it does.
- quotemstr 7y agoNo, it does not.
- 0xdead 7y ago$ cat hello.c #include <stdio.h> int main(void) { printf("hello world\n"); return 0; } $ cat hello.cpp #include <iostream> using namespace std; int main(void) { cout << "hello world" << endl; return 0; } $ gcc -o hello_c hello.c $ g++ -o hello_cpp hello.cpp $ ll hello_* -rwxr-xr-x 1 root root 5880 Dec 5 14:13 hello_c -rwxr-xr-x 1 root root 7424 Dec 5 14:14 hello_cpp I see 1544 bytes of bloat. Hope that helps.