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 is abstraction and encapsulation?
Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.
Can main method override?
can we make game by using c
what is new modifier in C#
What are the three parts of a simple empty class?
Why is static class not inherited?
What is and I oop mean?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
i^=j; j^=i; i^=j; value of i,j
Where is pseudocode used?
What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined