Visit Our UNIX and Linux User Community

Learn C or C++

Thread Tools Search this Thread
Top Forums Programming Learn C or C++
# 1  
Old 05-11-2006
Learn C or C++


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?


# 2  
Old 05-12-2006
Linux Application Development - a book that is a defacto standard for primary Linux development is C and the tools to support it.
# 3  
Old 05-12-2006
Originally Posted by c19h28O2

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?


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.

Previous Thread | Next Thread
Test Your Knowledge in Computers #998
Difficulty: Medium
Hooksafe is a hypervisor-based light system that safeguards a computer's kernel from rootkit attacks.
True or False?

10 More Discussions You Might Find Interesting

1. Linux

Should I learn RHEL???

Greetings. EDIT after giving this some thought. For a beginner, would it be advised for a new user to purchase RHEL and learn linux from that OS? I currently have Fedora 17 and am studying to specialize in Unix/Linux administration. I'm trying to justify the cost of RHEL since all other... (3 Replies)
Discussion started by: ninealiases
3 Replies

2. UNIX for Dummies Questions & Answers

Want to learn

Hi I know only basics of UNIX and i want to know that how can i become a good troubleshooter in unix adminstartion or shell scripting.... i am just a newbie to Unix ..i do not have programming skills as well. Your suggestions are welecomed. (1 Reply)
Discussion started by: nattynitin
1 Replies

3. UNIX for Dummies Questions & Answers

Best way to learn UNIX

Hi, I am the ultimate noob when it comes to UNIX. Apart from a few basic thing like ls -l and mkdir (and that really is about as good as it gets) I know absolutely nothing about UNIX and I want to learn it and get better! I'm sure like with most things, just getting stuck in and trying... (3 Replies)
Discussion started by: thebdj
3 Replies

4. Linux

**Newbie** Need help to learn.

Hi, I have just now started working with a company. I am working on black screen and earlier I didn't knew whether it was unix or linux but today I searched google and found uname command and found that I am using Linux kernel :D . As you all must've figured out that I am a real ultra newbie and... (5 Replies)
Discussion started by: csrohit
5 Replies

5. UNIX for Dummies Questions & Answers

I Want to Learn HP-UX!

What's the best free system to learn HP-UX on? The closest system, hardware requirements and installation instructions. I'm a newbie but determined. Any tips would be great. (6 Replies)
Discussion started by: networkguy
6 Replies

6. Shell Programming and Scripting

Looking to learn perl

What do you suggest for someone that doesn't have any programming experience and want to learn perl? (3 Replies)
Discussion started by: bbbngowc
3 Replies

7. HP-UX

System to learn on.

Hello all! I have recently picked up a contract job doing system administration. I was told it was primarily a Linux Red Hat shop but when I started I found out was about 60% HP-UX. I have very little HP-UX experience. I need to get an affordable HP-UX box to learn on. Any suggestions on... (8 Replies)
Discussion started by: offline
8 Replies

8. Red Hat

I want to Learn Linux ?

dear friends I am new in linux and i want to learn linux in dos-mode (note in gui mode). Plz if you have any valuable link plz send me . i will really thankful for this anticipation. irfan ahmad (4 Replies)
Discussion started by: itlhr@pharmax.c
4 Replies

9. UNIX for Dummies Questions & Answers

I want to learn!

Hiya, yes im new to all of this! But want to learn how to use Unix etc, iv been thinking about doin a course but desided im better off learning by my self with help from the people who really no what there guys! I can install Linux, like redhat, mandrake, susie server edition and so... (5 Replies)
Discussion started by: epic.admin
5 Replies

10. UNIX for Dummies Questions & Answers

Where to Learn About HP-UX

can someone give me the link to any site that deals on HP-UX system administration?? Please do not refer me to buy or borrow any books, i just need a free site to learn some quick info from (1 Reply)
Discussion started by: TRUEST
1 Replies

Featured Tech Videos