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

Answer Posted / rajendra kumar jena

C is a procedural Language, but C++ is a object oriented
language.

* C employs top down approach, but c++ employes buttom up
approach.

* Here in C, when ever we are writing a program, the data
are not secured from the outside world. but in C++ data are
secured from the outside world.

* C give emphasis in algorithims and functions, but C++
give emphasis on the data and objects.

* In C we are using #include<stdio.h> as header file, but
in C++ we are using #include<iostream.h> as header file.

Is This Answer Correct ?    480 Yes 71 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is basic concept of oop?

880


What are constructors in oop?

784


What are oops methods?

745


Can we create object of interface?

818


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1866


When not to use object oriented programming?

761


What is an example of genetic polymorphism?

857


How long to learn object oriented programming?

801


Can enum be null?

756


Is this job good for future? can do this job post grduate student?

1900


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1835


What is abstraction in oops with example?

980


• What are the desirable attributes for memory managment?

1934


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.

938


What is data binding in oops?

813