what is the main difference between c and c++?
Answer Posted / jhumu
DIFFERENCE BETWEEN C AND C++:
* C IS STRUCTURED PROGRAMMING LANGUUAG WHEREAS C++ IS
OBJECT ORIENTED PROGRAMMING LANGUAGE.
* C IS TOP-DOWN PROCESS BUT C++ IS BOTTOM-UP PROCESS.
* C++ IS PREDECCESSOR OF C.
* C++ SUPPORTS 5 MAIN CHARACTERISTICS CLASSES, OBJCECTS,
INHERITENCE, ENCAPSULATION AND POLIMORPHISM WHEREAS C
DOES'T SUPPORT THESE FEATURES.
* C++ USES CLASSES WHICH IS AS SIMILLAR AS STRUCTURE USED
IN C BUT THERE IS MINOR DIFFERENCE BETWEEN THEM IS
STURCTURE SUPPORTS ONLY DIFFERENT DATA TYPES WHEREAS CLASS
IS A COLLECTION OF DIFFERENT DATA MEMBERS AND MEMBER
FUNCTIONS ALSO.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
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 abstraction example?
Which is better struts or spring?
write string class as your own class in java without using any built-in function
Prepare me a program for the animation of train
What is inheritance write a program to show use of inheritance?
How to call a non virtual function in the derived class by using base class pointer
Why is object oriented programming so hard?
Why polymorphism is used in oops?
Why do we use oop?
What is class and object in oops?
Write a program to sort the number with different sorts in one program ??
What is the benefit of oop?
Can a varargs method be overloaded?
What are different oops concepts?