what is the main difference between c and c++?

Answers were Sorted based on User's Feedback



what is the main difference between c and c++?..

Answer / g.dhanalakshmi

1)C program supports top-down approach, but c++ program
supports bottom up approach.
(Explanation) If we need to compile c/c++ program, the
compiler first goes to main()function, In c++ we start with
class and main() function is at the bottom.

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / javed farooque

c is a procedural /structured and modular language in which
program can broken into smaller parts.c++ is based on
object oriented & c++ is a support of c. so we can say
c++ = c + object oriented.

Here, ++ is the increment opertaor it is increment by 1.
c++ is the superset of c.

c does not support reusability of code and data hiding
concepts.

c++ support reuseability of code and use for data hiding.

copy right @2009
All right reserved Affiliated by govt of M.P

Is This Answer Correct ?    3 Yes 2 No

what is the main difference between c and c++?..

Answer / sricharan

>> C << >> C++ <<

1> Basically it is an 1> It is an Object oriented
procedure oriented known as OOPS

2> It is an Top-Down 2> It is an Bottom-Up
approach approach

3> syntax ->#include<stdio.h> 3> #include<iostream.h>

4>Here we use Print f & scan f 4> Here we use cout and cin
statements statements

5>Mainly Focus on procedure 5> Mainly Focus on Data

Is This Answer Correct ?    2 Yes 1 No

what is the main difference between c and c++?..

Answer / bhanu pratap singh

in c we make the prog without header file but in c++ we
cant make the program without include header file.
bhanu

Is This Answer Correct ?    3 Yes 2 No

what is the main difference between c and c++?..

Answer / vijayasekar

1.C does not have any classes or objects. It is procedure
and function driven. There is no concept of access through
objects and structures are the only place where there is a
access through a compacted variable. c++ is object oriented
2.C structures have a different behaviour compared to c++
structures. Structures in c do not accept functions as
their parts.
3.C input/output is based on library and the processes are
carried out by including functions. C++ i/o is made through
console commands cin and cout.

Is This Answer Correct ?    2 Yes 1 No

what is the main difference between c and c++?..

Answer / akash

c is a procedure programing language
c ++ is a object oriented language
c++ support various features such as data hiding encapsulation, templates, overloading etc dis features are not there in c.
in c focus is given on function where as in c++ focus are given to data.
maintains of large softwares are not possible in c

Is This Answer Correct ?    2 Yes 1 No

what is the main difference between c and c++?..

Answer / jony

c mean see beautiful girl..
C++ means enjoy there beauty......always

Is This Answer Correct ?    5 Yes 4 No

what is the main difference between c and c++?..

Answer / kamal kishore

c is procedural language wrereas c++ is object oriented
language which can deal wuth real-world models.
c focus on procedure and c++ emphasis on data and its
object.c++ can model with real world objects
.

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / srinivas

by using c++,we can increase program efficiency and easily
trace the program.by using the classes and objects we can
easily access the variables.

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between c and c++?..

Answer / sravanthi

c is a simple programming language where as c++ is object
oriented programing language.in c++ pgms are written based on
classes & objects.both are system dependent.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is the highest level of cohesion?

0 Answers  


What is a null tree?

0 Answers  


What is the problem with multiple inheritance?

0 Answers  


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


State what is encapsulation and friend function?

0 Answers   BirlaSoft,






What is multilevel inheritance?

0 Answers  


Is react oop?

0 Answers  


What is oops in simple words?

0 Answers  


design class for linked list and include constructor,destructor,insert option. struct node { int node; struct node &ptr; }

1 Answers   HSBC,


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


what is code for call by value and call by reference?

1 Answers  


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

1 Answers   HCL, TCS,


Categories