What is difference c and c++?
Answer / priya
C does no support polymorphism, encapsulation, and inheritance which means that C does not support object oriented programming.
C++ supports polymorphism, encapsulation, and inheritance because it is an object oriented programming language.
C is a subset of C++.
C++ is a superset of C.
| Is This Answer Correct ? | 0 Yes | 0 No |
Specify different types of decision control statements?
What is RTRT tool?can it be used for automation?can it work on packet PC?
To what does “event-driven” refer?
What is a concrete class?
What is the difference between delegation and implemented-in-terms-of?
In a class only declaration of the function is there but defintion is not there then what is that function?
Write about the use of the virtual destructor?
What are activex and ole?
Is python written in c or c++?
Explain the difference between c++ and java.
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
Define a way other than using the keyword inline to make a function inline?