difference between c and c++?

Answer Posted / mahesh

=>c does not a class/object concept
=>c++ provides data encapsulation,data
abstraction,polymorphism.
=>c++ support all c syntax
=>in c passing value to a function is "call by value"
where c++ its "call by reference"

Is This Answer Correct ?    173 Yes 78 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a virtual destructor? Explain the use of it?

543


How do I tokenize a string in c++?

606


Is dev c++ a good compiler?

526


What is the syntax for a for loop?

594


Why c++ is better than c language?

557






What is the best c++ ide?

597


What is the best book for c++ beginners?

566


How do you clear a set in c++?

601


What size is allocated to the union variable?

587


What is boyce codd normal form in c++?

688


Tell me an example where stacks are useful?

590


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

1740


What is the purpose of extern storage specifier?

619


Can we get the value of ios format flags?

655


Which function cannot be overloaded c++?

573