Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:35:58+00:00 2026-06-18T05:35:58+00:00

I know there are differences in the source code between C and C++ programs

  • 0

I know there are differences in the source code between C and C++ programs – this is not what I’m asking about.

I also know this will vary from CPU to CPU and OS to OS, depending on compiler.

I’m teaching myself C++ and I’ve seen numerous references to libraries that can be used by both languages. This has started me thinking – are there significant differences between the binary executables of the two languages?

For libraries to be easily used by both, I would think they’d have to be similar on an executable level.

Are there many situations where a person could examine a executable file and tell whether it was created by C or C++ source code? Or would the binaries be pretty similar?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:35:59+00:00Added an answer on June 18, 2026 at 5:35 am

    In most cases, yes, it’s pretty easy. Here are just a few clues that I’ve seen often enough to remember them easily:

    1. C++ program will typically end up with at least a few visible symbols that have been mangled.
    2. C++ program will typically have at least a few calls to virtual functions, which are typically quite distinctive from code you’ll typically see in C.
    3. Many C++ compilers implement a calling convention for C++ that gives special consideration to passing the this pointer into C++ member functions. Again, since the this pointer simply doesn’t exist in C, you’ll rarely see a direct analog (though in some cases, they will use the same convention to pass some other pointer, so you need to be careful about this one).
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to compile c# source code from a string. I know this
I am in charge of about 100+ documents (word document, not source code) that
I know that there must be some differences. I have a Silverlight component (
I do know some basic differences but there are still some questions in my
I would like to know is there any difference in performance between these two
I'd like to know if there's a difference between the following two calls to
I would like to know if there is a difference in speed between computing
In clojure, I'd like to know what are the differences between the three below.
Some of us in my company are arguing about it. Given a source code
I am trying to port a rather large source from VB6 to C#. This

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.