Ask Question
30 September, 03:58

What is the difference between C and C++. If I know C, will it be hard to lean C++?

+3
Answers (1)
  1. 30 September, 04:13
    0
    The difference between c and c+ + are given below

    (1) C does not support object oriented programming structure while c+ + supports object oriented programming structure.

    (2) C does not support namespace concept while c+ + support namespace concept

    (3) C has a procedural language it means it follow top down approach while C+ + is object oriented it means it follow bottom up approach

    (4) C does not support virtual function concept while C+ + support virtual function concept

    (5) The programming structure of c language is given below

    #include / / header file

    void main () / /main method

    {

    //statement

    }

    Programming structure of C++

    #include / / header file

    using namespace std; / / namespace

    void main () / / main method

    {

    / / statement

    }

    If anyone know C, will it be not hard to learn C+ + because only the syntax will change but the logic of programming is not changed. The operator and most concept are similar in both the languages.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the difference between C and C++. If I know C, will it be hard to lean C++? ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers