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 the real time example of encapsulation?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is meant by multiple inheritance?
Get me an image implementation program.
What is class and example?
What is object in oops?
What is advantage of inheritance?
What is abstraction with example?
What is pointer in oop?
What is inheritance in oop?
What is polymorphism and types?
when to use 'mutable' keyword and when to use 'const cast' in c++
c++ program to swap the objects of two different classes
What is coupling in oop?
Who invented oop?