what is the main difference between c and c++?
Answer Posted / raman sharma
in c is structual language and c++ is a object oriented
language. in c we use #include<stdio.h> and in c++ we use
#include<iostream.h>. in c we single line comment /* /* and
in c++ we use // //. in c we use manipulator and in c++ we
dont use manipulator because in c++ there is a one header
file we use #include<iomanip.h>. in c++ there is
class,object,encapsulation,inheritance,message
binding,polymorphism etc and in c there is no class and
object. in c++ we use endl in line break also \n but in c
programming there is only \n we use. there is constructor
and disgustor. in c++ is easy and less complexity program.
in c there is use printf() for output and scanf()for input
and c++ there is cout<< for output and cin>> for input and
<< is insertion and >> is a extraction this is main
differece between in c and c++
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are oops methods?
What does enum stand for?
What is polymorphism explain?
What is the diamond problem in inheritance?
i got a backdoor offer in process global,Bangalore..Can i work with it?
What is the highest level of cohesion?
What is difference between abstraction and encapsulation?
What language is oop?
What is this pointer in oop?
What does it mean when someone says I oop?
What is difference between inheritance and polymorphism?
What is object in oop with example?
hi all..i want to know oops concepts clearly can any1 explain??
What is a function in oop?
What is overriding in oop?