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

What apps are written in c++?

702


what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?

1862


What is the use of pointer in c++ with example?

642


What are signs of manipulation?

704


What is ostream in c++?

651






Which is better turbo c++ or dev c++?

642


what are the iterator and generic algorithms.

1784


What is lambda expression c++?

668


What is general form of pure virtual function? Explain?

602


What is function overriding in c++?

684


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

1675


What are the unique features of C++.

652


How is new() different from malloc()?

736


why and when we can declar member fuction as a private in the class?

1686


How do I write a c++ program?

687