what is the difference between c and c++?

Answer Posted / sai

c is a procedural language which can't use in real world
applications
c++ is object oriented programming language
by using objects in c++ we can declare classes
we can use encapsulation in c++ but can't use in c
the execution of c++ is faster than c
we use printf scanf in c and cout cin are used in c++
for writing and printing data
we don't require to write header files in c++ instead we
have to write iostream

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array in c with example?

610


Write a program to know whether the input number is an armstrong number.

663


What is double pointer?

554


What are enumerated types?

649


Explain what are reserved words?

630






List some applications of c programming language?

545


How can I find out if there are characters available for reading?

637


What are variables c?

612


Why is void main used?

613


Calculate 1*2*3*____*n using recursive function??

1511


Explain null pointer.

615


What does c mean?

585


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

583


What is the hardest programming language?

661


What is the need of structure in c?

562