Computer Science, asked by Shreyaeshwari2540, 1 year ago

What is difference between main method in c and c++?

Answers

Answered by sethu97
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
Answered by InnocentJatti
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