what is the main difference between c and c++?
Answer Posted / perumalla.naveen kumar
in c after using the main function we can declare the variables.
in c++ before using the main function we can declare the variables.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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!!!)
what is the sylabus for priliminaries?
Can we define a class within the interface?
What are benefits of oop?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What is destructor example?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
What is object in oops?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is encapsulation in oops?
Why polymorphism is used in oops?
Why do we need polymorphism in c#?
What is the problem with multiple inheritance?
What causes polymorphism?
Why is static class not inherited?