what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / priya
c language is top to bottom approach whereas c++ is bottom
to top approach
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / s prasanna kumar
C C++
DATA IS NOT SECURED SECURED
TOP DOWN BOTTOM-UP
FOCUS ON PROCEDURES FOCUS ON DATA
PROGRAMS ARE DECOMPOSED INTO OBJECTS
INTO FUNCTIONS
allocation is done NEW OPERATOR
with malloc statement
UNOINS AND ENUMS AVALIABLE
ARE NOT AVALIABLE
DOES NOT PROVIDE PROVIDES
DEFAULT ARGUMENTS
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / pavankumarreddy
c is an object based language where as c++ is an object
oriendted languague. c doesnot supports oops concept,c++
supports oops.
in c there is no cocept of operator overloading, where as
it is in c++.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / viji
C is the main of the came for c++,java.It is must important
to the c.C is doesn't support overloding.But c++ support
overloading.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer /
c is like coffee
but c++ is like coffee with extra sugar
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / amit chidrewar
data abstraction and data encapsulation not present in c
while these are features of c++.Moreover emphasis are doing
on procedures in c while in c++ emphasis is dealing in
objects.Inheritance,polymorphism not present in c.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / chandan seta
In c we use #include<stdio.h> but in c++ we use
#include<iostream.h>
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vaijayanthimala
c is a procedure oriented language and give importants to
procedure that is fuction rather than data.c is a middle
level language.
c++ is a object oriented language and give importants to
object that is data.c++ is high level language.
c does not provide class / object concept
c++ provides encapsulation ,data abstraction,polymorphism..
In c passing a value to a function is "call by value "
where c++ its " call by reference".
c is top to bottom programming approch.
c++ is bottom to top programmong approach.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / annie
1)C is procedure oriented language whereas c++ is object
oriented language.
2)C uses top down approach whereas c++ uses bottom up approach.
3)We can declare variables in the body of main() at the
beginning whereas we can declare variables anytime in c++
when we want to use them.
4)There is no concept of operator overloading in c whereas
there is a concept of operator overloading in c++.
Is This Answer Correct ? | 0 Yes | 0 No |
What are the advantages of inheritance?
26 Answers IBS, TCS,
What is polymorphism programming?
Can we override main method?
Why static Function is used in C++?
Is enum a class?
write a progra in c++ using class & object to find out wheather a given no. is prim or not.
A file pointer always contains the __________ of the file
what is the difference between javap and jad utility
What is the use of fflush(stdin) in c++?
#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile
what is an instance of a class
diff between Abstract class Interfaces?