what is the main difference between c and c++?
Answer Posted / gilbert
C is low level mostly. The idea behind C was to create a
language that was close enough to the hardware so that you
can maximize efficientcy but far enough away from the
hardware so that it was easier to program in that say
assembly. C++ is a high level multiparadigm general purpose
programming language that supports object orientation it is
not an object oriented programming language because an
object oriented programming language forces you to use
object oriented programming like Java or C# in those
languages everythings is an object but C++ not only shows
support for object oriented programming but for generic
programming, polymorphism, inheritance, encapsulation,
procedural programming and multiple inheritance, statically
typed, and free form as well.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why multiple inheritance is not allowed?
What is abstraction and encapsulation?
What is advantage of inheritance?
What is encapsulation oop?
Why do we need polymorphism in c#?
Get me a number puzzle game-program
What do you mean by variable?
What is meant by multiple inheritance?
What is destructor oops?
What is abstraction oop?
What is abstract class in oop?
What are two types of polymorphism?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What type of loop is a for loop?
can we make game by using c