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
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is encapsulation with example?
What is interface? When and where is it used?
What is object in oop?
Can you explain polymorphism?
How can you overcome the diamond problem in inheritance?
Why is oop better than procedural?
Is data hiding and abstraction same?
What are properties in oop?
How do you define a class in oop?
What is an interface in oop?
What polymorphism means?
How Do you Code Composition and Aggregation in C++ ?
What are the two different types of polymorphism?