what is the main difference between c and c++?
Answer Posted / kanteshwar
1)In c we can not write function inside structure but in c++
function is inside the structure.
2)C language is not flexible means if tomarow logic changes
and program is large it is more difficult to change the
logic but c++ is flexible it providing the feature like
Inheritance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is overloading and its types?
What is abstraction and encapsulation?
What is difference between data abstraction and encapsulation?
What is encapsulation in oop?
Whats oop mean?
What is polymorphism what is it for and how is it used?
What is abstract class in oop?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What are the three main types of variables?
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
Is data hiding and abstraction same?
What is object in oop?
What is constructor overloading in oop?
Can a varargs method be overloaded?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?