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

Answer Posted / kanteshwar

1)In c we can not write function inside structure but in c++
function is inside the structure.

2)C language is not flexible means if tomarow logic changes
and program is large it is more difficult to change the
logic but c++ is flexible it providing the feature like
Inheritance.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class encapsulation?

598


can we make game by using c

3432


What is difference between abstraction and encapsulation?

594


How long to learn object oriented programming?

565


Why do we use class in oops?

555






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

1654


What is an advantage of polymorphism?

597


What is for loop and its syntax?

598


Why we use classes in oop?

584


Why is there no multiple inheritance?

570


What is destructor example?

598


What do you mean by Encapsulation?

643


Why multiple inheritance is not possible?

602


How do you define a class in oop?

628


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

1837