what is the main difference between c and c++?
Answer Posted / pratap
C:c is a structure oriented language C:c++ is a object oriented language
C: program the main function could not return a value
C++:c++ the main function should return a value
C:c data is not secured
C++:c++ is a secured
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is class in oop with example?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Write a program to reverse a string using recursive function?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
How long to learn object oriented programming?
write a program to find 2^n+1 ?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
What is interface in oop?
what type of questions
What is overloading in oops?
What are the three parts of a simple empty class?
What is meant by oops concept?
What is methods in oop?
What is a class and object?
Why multiple inheritance is not possible?