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

Answer Posted / varun ait

declaration of variable in C, should be done at its very
beginning of the program.
but in C++, variables can be declared anywhere inside a
function.

Is This Answer Correct ?    39 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1657


Is this job good for future? can do this job post grduate student?

1694


Can private class be inherited?

622


Templates mean

1592


What is the types of inheritance?

604






What are the two different types of polymorphism?

675


Prepare me a program for the animation of train

2005


What is encapsulation and abstraction? How are they implemented in C++?

639


What does oop mean in snapchat?

688


Can an interface inherit a class?

565


What is encapsulation process?

584


What is destructor in oop?

627


Write a program to sort the number with different sorts in one program ??

1923


What is the problem with multiple inheritance?

588


What do you mean by variable?

578