Ask Question
6 April, 21:15

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

+1
Answers (1)
  1. 6 April, 23:36
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers