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

int i=10; printf("%d %d %d", i, i=20, i);

1008


List the difference between a "copy constructor" and a "assignment operator"?

578


Explain how can I remove the trailing spaces from a string?

621


How do I read the arrow keys? What about function keys?

610


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

559






Explain what is gets() function?

627


write a program to find out prime number using sieve case?

1636


What are reserved words with a programming language?

599


Why is structure important for a child?

601


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

608


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

751


What is difference between far and near pointers?

605


Write program to remove duplicate in an array?

595


What does c value mean?

620


How to set file pointer to beginning c?

662