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
Which language is pure oop?
What does no cap mean?
can we make game by using c
Why is encapsulation used?
How do you define a class in oop?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
what's the basic's in dot net
What do you mean by abstraction?
hi all..i want to know oops concepts clearly can any1 explain??
Which method cannot be overridden?
write a C++ program for booking using constructor and destructor.
How to call a non virtual function in the derived class by using base class pointer
What is the main purpose of inheritance law?
What are benefits of oop?