what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / tamil
C gives importance to procedure. That is functions rather
than data. The main function couldnot return a value. It is
dont support c++ programme.
C++ gives importance to object that is data. The main
function should return a value. It is support c programme.
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 ? | 0 Yes | 0 No |
Answer / kalyan
1) C is structured programming language , where as C++ is
Object Oriented programming language.
2) In C we declaration at begging of program,where as in c++
any where in program.
3) C has only 32 keywords ,where C++ 32 keywords pules
Public,private,protected,class.
4) C not support Exception Handling,where as C++ support
exception handling.
5) In C global variable and local variable are not
differentiate , where as in C++ differentiate using
Scope Resulation (::) operator .
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nethajiprasath
c is procedural oriented language
c++ is object oriented language....
c++ add the features of
class,object,inheritence,polymorphism,operator
overloading,function overloading..
simply c++ is a extension of c
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ramya priyanka
c is top down approach bcoz after creating the logic we use the data to access related to it,but in c++ bottom up approach
bcoz from the data bases we create the logic and access it.....and this is the difference between c & c++
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / gyanendra pandey
1-clanguage is not object orinted language but c++
is object orinted lenguage'
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mahadevaswamy
c is a pop,c++ is oop.
c is use scanf func for input,while c++ use cin>>.
c is use printf func for output,while c++ use cout<<.
c comes after A,B and c++ comes after adding ++ in c.
c use #include<stdio.h> while c++ use #include<iostream.h>.
c is topdown approach and while c++ is bottom up.
c the main prg couldn't return vslue but c++ should return
value.
c++ support operator overloading but c doesn't support
overloading .
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / mahila
c is procedural language, but c++ is object oriented language
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / rohan
The basic difference b/t c&c++ is that c uses function where as c++ uses class.
c is top down approach where as C++ uses bottom up approach.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nishant kumar
c is a structural programming language but c++ is oops language.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is new modifier in C#
What is Method overloading?
What are the benefits of interface?
given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy
What is coupling in oop?
what is the abstract class,interface ,its difference with a programatic eg.? hi,recently i went for an interview they ask me what is abstract class ,interface and its difference I said abstract class contain abstact method ,abstract method is a method with no body.Abstract class cannot be instantiated.Abstract class is a base class it required derived class for the implementation of method. Interface is a syntactical contract that all derived class should follow it define properties ,method,events which are known as member of interface. Then They asked me what is the difference between them. I said abstract class interface 1.abstact class can implement method 1.interface cant 2.abstact class can contain constructor, 2.interface cant destructor 3.abstract class cannot support multiple 3.interface support inheritance etc Then they said some different answer I said dont no. Then they ask me when i should make abstract class for an project and when i should make interface. I said if suppose there is two class which must be having method with different logic then we sholud make abstract class. and if suppose we have two class having method .with different logic then we can make interface . Am i correct with my explaination.if not correct me .please provide me that when should we create abstract class and interface and what is difference .please help me
write a program that takes input in digits and display the result in words from 1 to 1000
What is overriding in oops?
What is a class?
32 Answers Infosys, TCS, Thylak,
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What are the four main oops concepts?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.