Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what defference between c and c++ ?

Answers were Sorted based on User's Feedback



what defference between c and c++ ?..

Answer / sambhunath samanta

Difference is given below.
1.c is the structure programming language where c++ is the object oriented language.
2.c does not support class but c++ support class.
3.c++ also called c as class,that is the advance version of c.
4.c++ have operator overloading while c does't have operator overloading

Is This Answer Correct ?    22 Yes 0 No

what defference between c and c++ ?..

Answer / vaishali bhajbhuje

1. c is structure language while c++ is an object oriented language.
2. Function overloading is possible in c++ because in c++ calling depends on the fun-name and parameter list.
3. c is topdown parsing.c++ is bottom up parsing.
4. c can don only static binding while c++ can done static as well as dynamic binding.

Is This Answer Correct ?    6 Yes 0 No

what defference between c and c++ ?..

Answer / sunil s patil

1. C follows the procedural programming paradigm while C++
is a multi-paradigm language(procedural as well as object
oriented)

In case of C, importance is given to the steps or
procedure of the program while C++ focuses on the data
rather than the process.
Also, it is easier to implement/edit the code in case of
C++ for the same reason.

2. In case of C, the data is not secured while the data is
secured(hidden) in C++

This difference is due to specific OOP features like
Data Hiding which are not present in C.

3. C is a low-level language while C++ is a middle-level
language (Relatively, Please see the discussion at the end
of the post)

C is regarded as a low-level language(difficult
interpretation & less user friendly) while C++ has features
of both low-level(concentration on whats going on in the
machine hardware) & high-level languages(concentration on
the program itself) & hence is regarded as a middle-level
language.

4. C uses the top-down approach while C++ uses the bottom-up
approach

In case of C, the program is formulated step by step,
each step is processed into detail while in C++, the base
elements are first formulated which then are linked together
to give rise to larger systems.

5. C is function-driven while C++ is object-driven

Functions are the building blocks of a C program while
objects are building blocks of a C++ program.

6. C++ supports function overloading while C does not

Overloading means two functions having the same name in
the same program. This can be done only in C++ with the help
of Polymorphism(an OOP feature)

7. We can use functions inside structures in C++ but not in C.

In case of C++, functions can be used inside a structure
while structures cannot contain functions in C.

Is This Answer Correct ?    1 Yes 0 No

what defference between c and c++ ?..

Answer / sunil s patil

Answer


c is not object oriented but c++ is object oriented


Actually c is a procedural programming language which
cann't face the real world problem. It has some drawback
like a global data is shared by all function and if in a
large program it is find out difficult that which function
uses which data.

On the other hand c++ is an object oriented programming
language which eliminate some pitfall of conventional or
procedural programming language. It is a concept or
approach for designing a new software. It is nothing to do
with any programming language although a programming
language which support the oops concept to make it easier
to implement.

This is the main different between c and c++.



in c we use scanf function as standard input function,while
in c++ we use streame cin>> for input.like this for output
in c we use printf function,while in c++ we use cout<< as a
output function.


in c we use #include<stdio.h>as iclusion file,while in c++
we use #include<iostreame>as inclusion file.


IN c-programe the main function could not return a value
but in the c++ the main function shuld return a value



A function can be declared in C as int fun();. This means
that fun()is a function without any argument or any number
of arguments.But in C++, this means that the function with
no argument at all.

Is This Answer Correct ?    0 Yes 0 No

what defference between c and c++ ?..

Answer / ayan

1>c is the procedural language & c++ is the object oriented
programming methodology.

2>In c++ there 3 types of operator u-nary,binary,ternary.
But in c there is only 2 types u-nary,binary.

Is This Answer Correct ?    0 Yes 0 No

what defference between c and c++ ?..

Answer / guest

1.c is the structure programming language where c++ is the
object oriented language.
2.c does not support class but c++ support class.
3.c++ also called c as class,that is the advance version of c.
4.c++ have operator overloading while c does't have operator
overloading

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is c variable?

0 Answers  


What is the maximum no. of arguments that can be given in a command line in C.?

0 Answers   HCL,


what does the following code do? fn(int n,int p,int r) { static int a=p; switch(n){ case 4:a+=a*r; case 3:a+=a*r; case 2:a+=a*r; case 1:a+=a*r; } } a.computes simple interest for one year b.computes amount on compound interest for 1 to 4 years c.computes simple interest for four year d.computes compound interst for 1 year

7 Answers   TCS,


code snippet for creating a pyramids triangle ex 1 2 2 3 3 3

4 Answers  


write a function for strtok()??

2 Answers   Verifone,


what is volatile in c language?

9 Answers   Cap Gemini, HCL, Honeywell, TCS, Tech Mahindra,


What does sizeof return c?

0 Answers  


What is the heap in c?

0 Answers  


When c language was developed?

0 Answers  


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

0 Answers   IBM,


What is an example of structure?

0 Answers  


How many types of operators are there in c?

0 Answers  


Categories