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


Please Help Members By Posting Answers For Below Questions

what's the basic's in dot net

1740


Why do we need polymorphism in c#?

690


What are the data types in oop?

608


What is and I oop mean?

622


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4248






i got a backdoor offer in process global,Bangalore..Can i work with it?

2328


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6155


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2110


Why is abstraction used?

612


what is graphics

2013


What is advantage of inheritance?

692


What is the advantage of oop over procedural language?

630


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.

1795


what type of questions

1697


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.

1792