what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / bhupendra singh
C follows procedural oriented approach and in procedural
oriented programmers are more focussed on functions rather
than data, how they write the program is more concerned
rather than security. But in object oriented programmer's
have given more priority to data than blocks.
Also procedural oriented terms difficult to understand ,but
object oriented meets real world existing system every thing
is considered as objects. I cannot write a program like
factorial but i can write a class called person...
This is main difference between c and c++.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / vikram
*C is a structured programming Language but C++ supports
partial Object Oriented Programming
* C employs top down approach, but c++ employes buttom up
approach.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sanjeev varma
C is an top down approach
were as C++ is partially both, top down approach also bottom
down approach
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / shidra
apart from the above definitions remember always that c++ is a super set of c that means all the operations as well as functions which are applicable in c are also available in c++
e.g.-U CAN USE PRINTF AND SCANF IN C++ AS WELL
whereas the reverse is not true as far as my knowledge says
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / satish
c supports function overloading and c++ supports operator
overloading
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / k.packiya
c is procadural langaue but c++ is object oriend language.C
is object based langauga.In c we have use th input and
output statement as printf and scanf but in c++ the input
and output statements are cout and cin.C++ is more
comlexitiy and security then c.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / arunrengan
c is a procedural or structered programming language
where as c++ is a object oriented programming language
so data is secured in c++ but in c data is not secured .
c - top down approach
c++ - bottomup approach
memory allocation:
In c using malloc statement
In c++ new operator.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / aalya malhotra
1.C is an procedural language whereas C++ is an object
oriented language.
2.C emphasis more on functions and C++ emphasis more on
data.
3.C is used to design medium sized programs whereas C++is
used to design large size programs .
4.C uses header files like <stdio.h>and <conio.h> where as
C++ uses <iostream.h>,<conio.h>
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / akshay kashyap
C++ uses Bottom Up method while c uses Top
Down..
| Is This Answer Correct ? | 0 Yes | 0 No |
Difference between over loading and over ridding?
12 Answers CTS, Patni, Softvision Solution,
Can we override main method?
Can main method override?
How would you stop a class from class from being derived or inherited.
What is function overloading and operator overloading?
How to hide the base class functionality in Inheritance?
Program to check whether a word is in all capital letters
class type to basic type conversion
what is new operator in c++
Can we create object of interface?
Why is abstraction used?
what is abstract class ? when is used in real time ? give a exp