what is the main difference between c and c++?
Answer Posted / gaurav jatwani
in c we use modifiers for scanf and printf
in c++ we don't use any modifiers
in c we have no protected access specifier
in c++ we have
in c we have no constructor and distructor
in c++ we have constructor and distructor
in c we cann't delcare variables any where
in c++ we can declare variables any where
in we have no INLINE AND FRIEND function
in c++ we have both
in c we use & operator in scanf for storing value in
variable ex:- ( scanf("%d",&age); )
in c++ we need not to use any operator to store value in
variables
GAURAV JATWANI
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How do you answer polymorphism?
What is protected in oop?
Why do we need polymorphism in c#?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
How is class defined?
What are the three parts of a simple empty class?
Get me a number puzzle game-program
Can destructor be overloaded?
How do you use inheritance in unity?
explain sub-type and sub class? atleast u have differ it into 4 points?
What does oop mean in snapchat?
What is difference between oop and pop?
What is oops concept with example?
What is object in oops?
What is the renewal class?