Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

c or c++ faster

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
On a Unix/Linux box which language is faster, c or c++. Considering both higly optimized code(no stl, or templates), compiling with gcc/g++, and having the programs both performing the same thing.
 
It all depends on how you do it. Since every c program is a c++ program, does that mean you are just using different compilers ? In that case i dont think there will be any difference(atleast with gnu compilers).

But to comment on generality, C is faster.

Mohan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top