Thread: Learning c++ after c?

  1. #1
    Registered User
    Join Date
    Mar 2019
    Posts
    50

    Learning c++ after c?

    Just wondering once I finish learning c, will that make learning c++ a lot easier? I understand some of the basic differences such as procedural vs object oriented programming. I also understand it won’t be like after I learn c, 2 minutes later I will be able to understand c++. But am I correct in assuming learning c will give me a lot of tools for understanding c++ easier and faster than not?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    If you want to learn C++, then learn C++.

    C isn't a pre-requisite.
    If fact, some parts of C are regarded as 'poor style' in C++, so really, you're better off not knowing them to begin with.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Mar 2019
    Posts
    50
    I see what youÂ’re saying donÂ’t get me wrong. But I want to learn both. One of the things IÂ’d like to do is study kernels and OSÂ’ and from my understanding you need basic c for this. Either way, I do want to learn both languages. But youÂ’re saying it might actually harm learning c++ later? Should I learn c++ first, then go back to learn c then. IÂ’m not a perfect coder in c yet, but have learned a lot.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    I'd still suggest you learn C++ only.

    You'll be able to read C just fine (for your OS studies) knowing C++.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Mar 2019
    Posts
    50
    Ok, last question then if I want to program non computer items, like microwaves, robots, etc., would I have a good enough understanding of how since c is the portable compiler used in these situation (again from my understanding). IÂ’m an electronics nerd and also want to learn how to engineer my own electronics including logic gates and programming (not right now but in the immediate future).

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    You should be fine.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Apr 2019
    Posts
    1
    Quote Originally Posted by Salem View Post
    If you want to learn C++, then learn C++.

    C isn't a pre-requisite.
    If fact, some parts of C are regarded as 'poor style' in C++, so really, you're better off not knowing them to begin with.
    This actually made my day. Sounds very encouraging for us newbies.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Learning C
    By TheNumber in forum C Programming
    Replies: 5
    Last Post: 12-23-2011, 07:41 PM
  2. Learning Dos and learning Windows
    By blankstare77 in forum C++ Programming
    Replies: 8
    Last Post: 07-31-2005, 03:48 PM
  3. Learning C# vs C++
    By 747ken in forum C# Programming
    Replies: 1
    Last Post: 11-10-2003, 01:19 AM
  4. Learning..?
    By Nagisaki in forum C Programming
    Replies: 3
    Last Post: 10-27-2003, 08:18 AM

Tags for this Thread