What is the difference between the C & C++?
Answers were Sorted based on User's Feedback
Answer / sudha
c++ is an object oriented language
where as c is not.c++ we can use class which is used to
reduce lines of code in a program
| Is This Answer Correct ? | 17 Yes | 2 No |
Answer / rajeswari.v
C C++
1.The execution of 'c The execution of c++ program is
program is top to bottom bottom to top approach.
approach.
2.Implementation of complex It is easy.
program is difficult.
3.Middle level language. It is hybrid language.
4.Every cycle changes not Possible in c++
possible in 'c'.
5.Less security for data More security for ddata
| Is This Answer Correct ? | 16 Yes | 4 No |
Answer / srikanth
c is a procedure oriented language where as c++ is a object oriented language.
| Is This Answer Correct ? | 14 Yes | 2 No |
Answer / keerthi
c c++
c is procedure oriented
language c++ object oriented language
C is top to down approach C++ is bottom up approach
C doesnot supports
functionoverloading C++ supports
C is not more secure
C++ is more secure because
of encapulation
C does not related to whole
world entity
C++ relates whole world
entity
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / mangal
The c is purely procedure The c++ is purely object
oriented programming
language
oriented progeaming
language
This is the main difference between these 2
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / asha
.In c more emphasis is given on procedure,but in c++ more
emphasis is given on data rather than procedure.
.In c the large program is divided into number of smaller
programs called modules,where as in c++ the program is
divided into objects.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / guest
c is procedure oriented programming language whereas c++ is
a object oriented language.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / keerthana
C C++
it is pop it is oop
in c,we caanot use class in c++,we can use class
to create to create programs.
programs.
c dont hav bool data it has bool datatype.
datatype.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / tcs
c is structered lang,c++ is oo lang.
poiter use in c++ but does not use in c
| Is This Answer Correct ? | 0 Yes | 5 No |
What is Hashing and how is it done? Pictorial form?
What is ambiguity in c++
what is the difference between inter class and abstract class...?
What is encapsulation example?
What is polymorphism in oop example?
In which Scenario you will go for Interface or Abstract Class?
1 Answers InfoAxon Technologies,
I am developing a payroll system mini project.I used file concept in program for reading and writing.When the program is reloading into the memory that is if i execute next time the file was cleaned and adding data from the starting this is my problem.I want to strore the previous data and if i want to add any record that should be next of previous data.Please help me.
What are the valid types of data that the main () can return in C/C++ language
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
c++ provides classes...and classes do what we want but why then strcut are used...if we say data hiding... it is also provided by c++ in structs then why to prefer clasess
When you define a integer it gets stored in which data structure?(Stack or a heap)
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