delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/17/23:00:19

From: "~liquid~" <merlyn AT gate DOT net>
Newsgroups: alt.comp.lang.learn.c-c++,comp.os.msdos.djgpp
Subject: Re: Which is best? C or C++ ???
Date: 16 Dec 1997 21:18:52 GMT
Organization: CyberGate, Inc.
Lines: 24
Message-ID: <01bd0a80$b482bb00$a47de3c7@merlyn>
References: <348a15e5 DOT 826895 AT news DOT clear DOT net DOT nz>
NNTP-Posting-Host: wpbfl2-37.gate.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> Can someone break through all the hype for me.  Which is the better
> language C or C++?  I suppose I should qualify it.
> 
> 1.  Some people say that C is more efficient than C++ but does this
> still matter with the faster computers, eg 486s, Pentiums.  How much
> more inefficient is it?
> 
> 2.  The claim is also that it reduces runtime bug hunting.  However
> I've noticed that C++ is also more complex and executes code hidden
> behind the scenes.  eg. constructors, destructors,
> operator-overloading.  Are the runtime bugs just manifesting in
> different ways?
> Any comments?

I thought that the object oriented nature of C++ would give it a leg up on
the older version? 
I haven't learned C yet but I've read a book on C++ and it emphisized the
introduction of new 
statements allowing for more "bug free" programming by constraining it to
limit the uses.
a prime example is the "goto" statement.. From what I've read it should be
avoided as much as possible


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019