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
What is class encapsulation?
can we make game by using c
What is difference between abstraction and encapsulation?
How long to learn object oriented programming?
Why do we use class in oops?
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
What is an advantage of polymorphism?
What is for loop and its syntax?
Why we use classes in oop?
Why is there no multiple inheritance?
What is destructor example?
What do you mean by Encapsulation?
Why multiple inheritance is not possible?
How do you define a class in oop?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?