what is the main difference between c and c++?
Answer Posted / mahadevaswamy
c is a pop,c++ is oop.
c is use scanf func for input,while c++ use cin>>.
c is use printf func for output,while c++ use cout<<.
c comes after A,B and c++ comes after adding ++ in c.
c use #include<stdio.h> while c++ use #include<iostream.h>.
c is topdown approach and while c++ is bottom up.
c the main prg couldn't return vslue but c++ should return
value.
c++ support operator overloading but c doesn't support
overloading .
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is oops and its features?
What is a class in oop?
What is the point of oop?
Why multiple inheritance is not possible?
Why do pointers exist?
What is byval and byref? What are differences between them?
What is stream in oop?
#include
What is the highest level of cohesion?
what are the different types of qualifier in java?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is variable example?
What does <> mean pseudocode?
What is polymorphism in oop example?
Get me an image implementation program.