what are difference between c and c++?

Answer Posted / sharad

c is structured programming language, but c++ is object
oriented language.c support the local variable but c++
support the global variable through (sro).in c change the
constant value through pointer but not in c++. in c declare
the method before executable statement but in c++ declare
any where.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an undefined behavior and sequence points

557


Is c++ built on c?

556


Why is main an int?

519


Why is c++ still best?

547


Show the declaration for a static function pointer.

566






What is a .lib file in c++?

558


What are default parameters? How are they evaluated in c++ function?

652


Write a note about the virtual member function?

595


What are inline functions? What is the syntax for defining an inline function?

570


Where is atoi defined?

572


What is the function to call to turn an ascii string into a long?

586


Explain static and dynamic memory allocation with an example each.

632


Differentiate between C and C++.

703


How can a struct in c++ differs from a struct in c?

604


What are stacks?

602