difference between c and c++?

Answer Posted / tania

In c++,access specifiers(public,protected,private)are used
while in C they are not used because in c there isn't any
data accessing restriction.
In c,I/O functions are scanf(),printf()respectively,but in
C++ cin>>,cout<< are used respectively.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If dog is a friend of boy, is boy a friend of dog?

575


What is the difference between a declaration and a definition?

584


How is data hiding achieved in c++?

575


What is iomanip c++?

600


What are vtable and vptr?

625






Should a constructor be public or private?

541


What is the best ide for c++?

576


Do the parentheses after the type name make a difference with new?

655


Can a function take variable length arguments, if yes, how?

570


What is #include iomanip?

552


What is one dimensional array in c++?

584


Briefly describe a B+ tree. What is bulk loading in it?

807


What is c++ best used for?

569


What is a local variable?

582


What is the use of function pointer?

579