1,105,263 Community Members

What would win in a fight? C++ or C?

Member Avatar
OblibSystems
Junior Poster in Training
66 posts since Aug 2011
Reputation Points: 12 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Basically the time old question of who would win. Just decided to put a very geeky twist to it. Just looking to see if people think C++ is better/worse then C :icon_lol:

Member Avatar
MosaicFuneral
Nearly a Posting Virtuoso
1,285 posts since Nov 2008
Reputation Points: 812 [?]
Q&As Helped to Solve: 157 [?]
Skill Endorsements: 11 [?]
 
0
 

One is the same as the other, but with an extra set of limbs.

Member Avatar
Ancient Dragon
Achieved Level 70
27,596 posts since Aug 2005
Reputation Points: 5,232 [?]
Q&As Helped to Solve: 3,032 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
1
 

One is not better or worse than the other. C is more appropriate in some applications while c++ may be better in others. It all depends on the application to be coded and the hardware on which the program will run.

Member Avatar
Narue
Bad Cop
12,139 posts since Sep 2004
Reputation Points: 5,693 [?]
Q&As Helped to Solve: 1,537 [?]
Skill Endorsements: 80 [?]
Team Colleague
 
2
 

Basically the time old question of who would win.

Including the time old mistake of no context. Language comparisons without context are pointless.

Member Avatar
sureronald
Junior Poster
142 posts since May 2008
Reputation Points: 0 [?]
Q&As Helped to Solve: 20 [?]
Skill Endorsements: 0 [?]
 
0
 

Language comparisons without context are pointless.

Spot on Narue!

Member Avatar
OblibSystems
Junior Poster in Training
66 posts since Aug 2011
Reputation Points: 12 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Guys i wasn't actually looking for an answer. This was meant to be a slightly fun thread where you were meant to post stupid and ridiculous replies to match the question. But nvm

Member Avatar
Narue
Bad Cop
12,139 posts since Sep 2004
Reputation Points: 5,693 [?]
Q&As Helped to Solve: 1,537 [?]
Skill Endorsements: 80 [?]
Team Colleague
 
0
 

This was meant to be a slightly fun thread where you were meant to post stupid and ridiculous replies to match the question.

Text is a medium that lacks visual and auditory cues for conveying meaning. Your question didn't imply that you wanted "stupid and ridiculous replies", so it's your fault for not making that intention clear.

The take-away lesson is: say what you mean or don't complain when you're misunderstood.

Member Avatar
OblibSystems
Junior Poster in Training
66 posts since Aug 2011
Reputation Points: 12 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Not being funny narue but if you think a question asking about 2 PROGRAMMING languages FIGHTING is serious then you really need to gain more social experience

Member Avatar
Narue
Bad Cop
12,139 posts since Sep 2004
Reputation Points: 5,693 [?]
Q&As Helped to Solve: 1,537 [?]
Skill Endorsements: 80 [?]
Team Colleague
 
0
 

Not being funny narue but if you think a question asking about 2 PROGRAMMING languages FIGHTING is serious then you really need to gain more social experience

Once again, your meaning was unclear. The most logical inferrance of "What would win in a fight?" is "What would win in a comparison?". Languages are not animate, don't "fight", and the attempt at whimsy is far from obvious.

you really need to gain more social experience

Right back at ya.

Member Avatar
Narue
Bad Cop
12,139 posts since Sep 2004
Reputation Points: 5,693 [?]
Q&As Helped to Solve: 1,537 [?]
Skill Endorsements: 80 [?]
Team Colleague
 
0
 

By the way, in a fight between C and C++, C++ would win easily because it's armed with two '+'s. :D

Member Avatar
Ancient Dragon
Achieved Level 70
27,596 posts since Aug 2005
Reputation Points: 5,232 [?]
Q&As Helped to Solve: 3,032 [?]
Skill Endorsements: 115 [?]
Team Colleague
Featured
Sponsor
 
0
 

But C doesn't have the heavy burden of carrying all those '+'s around all the time, so that makes it lighter and quicker. Similar in comparison to an old overweight man (me) and a young spring chicken (Dani) :)

Member Avatar
OblibSystems
Junior Poster in Training
66 posts since Aug 2011
Reputation Points: 12 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Ok narue i must admit i was getting annoyed with you. But must admit tha last post was class :p

Member Avatar
Nick Evan
Industrious Poster
4,827 posts since Oct 2006
Reputation Points: 4,005 [?]
Q&As Helped to Solve: 560 [?]
Skill Endorsements: 30 [?]
Team Colleague
Featured
 
1
 

Ok narue i must admit i was getting annoyed with you

Narue rubbing someone the wrong way?! This is truly shocking news! :D

Member Avatar
cwarn23
Occupation: Genius
3,028 posts since Sep 2007
Reputation Points: 387 [?]
Q&As Helped to Solve: 281 [?]
Skill Endorsements: 15 [?]
Team Colleague
Featured
 
0
 

I vote for C because C++ was written in C there for is limited to C's capabilities and is there by more recourse hungry than C as it another level of compilation of computer interpretation for reading the binary sequence. Things were sooo much simpler with punch cards.

Member Avatar
doug65536
Light Poster
33 posts since Sep 2011
Reputation Points: 18 [?]
Q&As Helped to Solve: 3 [?]
Skill Endorsements: 0 [?]
 
1
 

At the start of the fight, C would open up with a flurry of super high speed punches. After a while though, the C program would start to bog down, because the developer used simplistic algorithms - lots of linear searches and the like.

C++ would maintain higher damage later in the fight, due to having lots of O(log(n)) performance containers. Therefore, C++ would win ;)

Member Avatar
skatamatic
Posting Shark
980 posts since Nov 2007
Reputation Points: 371 [?]
Q&As Helped to Solve: 133 [?]
Skill Endorsements: 5 [?]
 
1
 

C would have C++ in an armbar, but unfortunately the C developer made a typo in the finish_armbar() routine so he can't break off C++'s arm. C# would be watching the whole thing from across the street behind a thick glass bubble, chuckling to himself.

Member Avatar
cwarn23
Occupation: Genius
3,028 posts since Sep 2007
Reputation Points: 387 [?]
Q&As Helped to Solve: 281 [?]
Skill Endorsements: 15 [?]
Team Colleague
Featured
 
0
 

At the start of the fight, C would open up with a flurry of super high speed punches. After a while though, the C program would start to bog down, because the developer used simplistic algorithms - lots of linear searches and the like.

C++ would maintain higher damage later in the fight, due to having lots of O(log(n)) performance containers. Therefore, C++ would win ;)

Using that theory c++ would be dead before it get's to use it's weapons. lol

Member Avatar
ddanbe
Posting Expert
5,341 posts since Oct 2008
Reputation Points: 2,054 [?]
Q&As Helped to Solve: 906 [?]
Skill Endorsements: 46 [?]
Featured
 
0
 

I don't see, do you see?:icon_wink:

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: