Learn C or C++

Hi,

Apologies if this question has been asked before.

I would like to know which language is better to learn in terms of programming in unix? is C dying out and being replaced by C++ or is it a combination of the 2 or just mainly C?

Thanks

C19

FWIW -
Linux Application Development - a book that is a defacto standard for primary Linux development is C and the tools to support it.

C cannot die out no matter how popular C++ gets since C++ is an extension of C, not a replacement. Any commands and libraries for C can be used in C++ natively, and compilers that understand C++ nearly always understand C as well. Nearly everything important in the UNIX world, is built in C -- everything from kernels to compilers, databases, languages, libraries, windowing environments, and large applications. (One notable exception is KDE.)

I'd reccomend learning C first. All of what can be done in UNIX can be done in C, and anything that can be done in C++ can be done in C with a little more thought; C also has fewer "gotchas" and implicit things than C++, which gives more direct control over program logic and more direct understanding. also, learning C first will teach you programming concepts and language syntax that you will need to know to use C++, concepts which are often used but seldom explained in most C++ teaching... Learn C well and you'll be halfway there to understanding C++ since most basics of both are the same.