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
How can you overcome the diamond problem in inheritance?
What is class in oop with example?
What does and I oop and sksksk mean?
What are benefits of oop?
What exactly is polymorphism?
What is inheritance and how many types of inheritance?
What is the problem with multiple inheritance?
write a program to find 2^n+1 ?
What are the types of abstraction?
What is the difference between static polymorphism and dynamic polymorphism?
to find out the minimum of two integer number of two different classes using friend function
How does polymorphism work?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
What is polymorphism explain its types?
Why multiple inheritance is not allowed?