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

  • Home
  • SEARCH
  • 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 58183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T17:48:29+00:00 2026-05-10T17:48:29+00:00

I am taking a class in C++ programming and the professor told us that

  • 0

I am taking a class in C++ programming and the professor told us that there is no need to learn C because C++ contains everything in C plus object-oriented features. However, some others have told me that this is not necessarily true. Can anyone shed some light on this?

  • 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. 2026-05-10T17:48:30+00:00Added an answer on May 10, 2026 at 5:48 pm

    Overview:

    It is almost true that C++ is a superset of C, and your professor is correct in that there is no need to learn C separately.

    C++ adds the whole object oriented aspect, generic programming aspect, as well as having less strict rules (like variables needing to be declared at the top of each function). C++ does change the definition of some terms in C such as structs, although still in a superset way.

    Examples of why it is not a strict superset:

    This Wikipedia article has a couple good examples of such a differences:

    One commonly encountered difference is that C allows implicit conversion from void* to other pointer types, but C++ does not. So, the following is valid C code:

    int *i = malloc(sizeof(int) * 5);   

    … but to make it work in both C and C++ one would need to use an explicit cast:

    int *i = (int *) malloc(sizeof(int) * 5) 

    Another common portability issue is that C++ defines many new keywords, such as new and class, that may be used as identifiers (e.g. variable names) in a C program.

    This wikipedia article has further differences as well:

    C++ compilers prohibit goto from crossing an initialization, as in the following C99 code:

     void fn(void)  {   goto flack;   int i = 1;  flack:    ;  } 

    What should you learn first?

    You should learn C++ first, not because learning C first will hurt you, not because you will have to unlearn anything (you won’t), but because there is no benefit in learning C first. You will eventually learn just about everything about C anyway because it is more or less contained in C++.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 67k
  • Answers 67k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer You can check the Control.ModifierKeys - because that is an… May 11, 2026 at 12:00 pm
  • added an answer Set the TreeView.LabelEdit property to False May 11, 2026 at 12:00 pm
  • added an answer For this type of thing, I'd probably use string formatting.… May 11, 2026 at 12:00 pm

Related Questions

I am taking a class in C++ programming and the professor told us that
Background: I am taking a class at my university called "Software Constraints". In the
I am taking a beginning C++ class, and would like to convert letters between
A class I am taking currently requires us to do all of our coding
I am taking on a maintenance team and would like to introduce tools like
I am taking in a string from user input, and splitting it on whitespace
I am a novice-intermediate programmer taking a stab at AJAX. While reading up on
I have a project where I am taking some particularly ugly live HTML and
I am working on a rails project. Using the tag observe_field, I am taking
Context: So, I am attempting to build a ridiculously complex domain model. Talking with

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.