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
What is pure oop?
Why is abstraction used?
What is destructor example?
Why interface is used?
How many human genes are polymorphic?
What causes polymorphism?
What is class and object in oops?
any one please tell me the purpose of operator overloading
What is basic concept of oop?
What is destructor oops?
What is difference between multiple inheritance and multilevel inheritance?
What is methods in oop?
What is oops with example?
What do you mean by abstraction?
What is advantage of inheritance?