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 volatile variable?

602


Explain how a pointer to function can be declared in C++?

584


What is static function? Explain with an example

561


What is the difference between #define debug 0 and #undef debug?

646


What is #include iostream h in c++?

618






In a function declaration what does extern means?

603


Specify different types of decision control statements?

360


what is the use of void main() in C++ language?

642


What flag means?

528


why is c++ called oops? Explain

584


Explain one-definition rule (odr).

649


Is rust better than c++?

607


What will happen if a pointer is deleted twice?

726


What is the difference between the functions memmove() and memcpy()?

636


Array base access faster or pointer base access is faster?

1819