Quote:
Originally Posted by
Deei
Is it like if I dont know C, I cant work on C++ ?
There's a large amount of overlap between C and C++; learning C++ without learning any C would be very tricky. Strangely, and often disastrously, this is the way it is frequently taught anyway. Learn C first, and you'll have an easier time learning and understanding the C++ extensions.
It's hard to say that only legacy applications use C. The entire Linux kernel, the gcc compiler and gnu linker and gdb debugger, the Xorg-X11 window manager, the Apache webserver, the mplayer media player, the GTK windowing toolkit, the Ghostscript renderer, the Samba network file daemon, the OpenVPN network tunneling daemon, Perl + BASH + KSH + PHP + Python + SWIG + TCL + TK are written in C,
not C++. MySQL, some big desktop application suites, the KDE window manager, and a few video codecs are C++.
Of course, these are open-source applications where nobody was forced to use any particular language, platform, API, or programming methodology. A C++ API forces you to use C++, a C API will work in either, which is why it's preferable to write libraries in C no matter which you intend to use them with.