What is difference between main method in c and c++?
Answers
Answered by
0
C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations.
C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation
C++ is a general-purpose programming language. It has imperative, object-oriented and generic programming features, while also providing facilities for low-level memory manipulation
Answered by
0
Answer:
C is a procedural language and C++ is a mix of procedural programming and object oriented programming language.
In c++, one defines classes, creates objects, uses the methods (functions) defined within a class. It is safer programming language than C language. Debugging programming could be simpler in C++. Since the language is object oriented, it is easier to add or enhance features by including more objects/classes in an existing program. The code size could be very high in C++.
C++ contains every thing that C program can do.
Similar questions
Computer Science,
7 months ago
Biology,
7 months ago
Science,
7 months ago
History,
1 year ago
Math,
1 year ago
Computer Science,
1 year ago
Physics,
1 year ago