what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / kani
c is a not oops language...but c++ is oops languge...in c v
use include<stdio.h>but in c++ v using include<iostream.h>
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / krishnachaitanya
c is a structured programming language and procedure
oriented language.c++ is an object oriented programming
language.c does not provide any security to data but c++
provides security to data.c does not have any uniformity
and associativity.in c,we use variables and in c++,we use
objects.c follows top_down approach and c++ follows
bottom_up approach.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / irfan khan
c is not object oriented but c++ is object oriented
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / kakkar & kainth
=> c is procedural as well as structured language while c++
is procedural and object oriented.
=> c++ is an extension of c.
=> various i/o functions in c++ are performed using
iostream.h while in c it is done through stdio.h.
=>instead of scanf,cin>> is used in c++ and instead of
printf, cout<< is used in c++.
=>c is top down approach while c++ is bottom up approach.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / yaswant kumar chaudhary
In c we can use only /* */this type of symbols for writing
any comments ,but in c++ we can use // ,and also symbols
used in c which is written above can also be used for
writing multiple line comments.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / srinath.r
c is a structure programmimg language. c is top down approach
whereas c++ is a object oriented programming language and
c++ is a bottom up approach
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ano
c does not contain class but c++ contains class,in the main
function itself c++ have the return value........
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / ricky dobriyal
c does not support default argument while c++ support
default argument
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
Answer / ankit
in c there is proprocessor while in c++ there is chandan
| Is This Answer Correct ? | 2 Yes | 1 No |
What is solid in oops?
Round up a Decimal number in c++.. example Note = 3.5 is as 4 3.3 is as 3
3 Answers Accenture, Cognizant, IBM,
Can abstract class have normal methods?
what is the 3 types of system development life cycle
features of OOPS
22 Answers Ness Technologies, Satyam,
me get an assignent n its question is this 1.creat a set as in math i.ea={1,2} 2.insert element in it3. delete element don,t repeat any element 4.union 5. intersection of two sets plz help me i always pray for u n send me at ayeshawzd@hotmail.com f u have c++ how to program 5th addition then it is the 10.9 question in 10th chapter exercise
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
inheritence with example
What is multiple inheritance ?
17 Answers Blue Star, C DAC, CDAC, Impetus, Ness Technologies, Softvision Solution,
What is virtual destructor? Why?
3 Answers Agile Software, College School Exams Tests, CSC,
Do you know about multiple inheritance?
what is cast operator?