difference between c and c++?

Answer Posted / k.k

.............SOME DIFFERENT ANSWER......

1) In c we declare variable at the start of block...

In c++ we can declare it any where.....

2)In c we can change value of constant variable by using
pointer...
In c++ we can not....

3)In c we can not take the address of register variable..

In c++ we can...

register int x;
printf("%d",&x);

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of ::(scope resolution operator)?

737


Write about c++ storage classes?

863


Explain storage qualifiers in c++.

706


Which one between if-else and switch is more efficient?

685


what are the characteristics of Class Members in C++?

693






Can we change the basic meaning of an operator in c++?

742


Explain how an exception handler is defined and invoked in a Program.

695


Why is it necessary to use a reference in the argument to the copy constructor?

715


What is c++ code?

674


If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

653


Explain deep copy?

689


If there are two catch statements, one for base and one for derived, which should come first?

662


Write a program to find the Fibonacci series recursively.

708


Is it possible for a member function to use delete this?

653


Describe new operator and delete operator?

728