what is the main difference between c and c++?
Answer Posted / kalyan
1) C is structured programming language , where as C++ is
Object Oriented programming language.
2) In C we declaration at begging of program,where as in c++
any where in program.
3) C has only 32 keywords ,where C++ 32 keywords pules
Public,private,protected,class.
4) C not support Exception Handling,where as C++ support
exception handling.
5) In C global variable and local variable are not
differentiate , where as in C++ differentiate using
Scope Resulation (::) operator .
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation selenium?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
How does polymorphism work?
What is static modifier?
What is overloading in oops?
What is the types of inheritance?
What is abstraction example?
write a program that takes input in digits and display the result in words from 1 to 1000
What is the purpose of enum?
What is encapsulation with real life example?
What is object in oop with example?
What does no cap mean?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is oops concept with example?
What is object and class in oops?