what is the main difference between c and c++?

Answer Posted / sindhu,swetha,charitha

in c we use scanf function as standard input
function,while
in c++ we use streame cin>> for input.like this for output
in c we use printf function,while in c++ we use cout<< as a
output function.

Is This Answer Correct ?    12 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction example?

614


How many human genes are polymorphic?

568


How do you answer polymorphism?

577


Which language is pure oop?

545


Which method cannot be overridden?

574






How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1652


What is encapsulation with real life example?

566


When not to use object oriented programming?

567


How do you define social class?

596


What is overloading and its types?

612


what is the drawback of classical methods in oops?

2916


What is polymorphism what are the different types of polymorphism?

559


What is the main purpose of inheritance law?

667


What is the real time example of inheritance?

635


Can you inherit a private class?

631