what is the main difference between c and c++?

Answer Posted / akash

c is a procedure programing language
c ++ is a object oriented language
c++ support various features such as data hiding encapsulation, templates, overloading etc dis features are not there in c.
in c focus is given on function where as in c++ focus are given to data.
maintains of large softwares are not possible in c

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is multilevel inheritance?

727


What is encapsulation and abstraction? How are they implemented in C++?

637


What does it mean when someone says I oop?

587


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3848


can inline function declare in private part of class?

3660






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.

699


What is overriding in oop?

550


What are the advantages of polymorphism?

577


How is polymorphism achieved?

587


Describe these concepts: Polymorphism, Inheritance and Abstraction.

616


What does and I oop mean in text?

625


INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?

1639


What are the components of marker interface?

604


what is different between oops and c++

2004


write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory

2765