what is the main difference between c and c++?
Answers were Sorted based on User's Feedback
Answer / kk
The main difference between c and c++ is that " C is a
structured programming language while C++ is an object
programming language and also we have templates in C++ that
is not the case in C
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / himanshu sharma
in c data does not flow around the system eaisly
in c++ data flow around the system very eaisly.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ghopchand manghi
no any diff. between c and c++.the only diff is that in c++ there are two ++ sign
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / internet
C is basic language which is helpful in learning programming
languages. But, C++ is the advancement of the C language
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / swagatika sahu
c is not secure while c++ provides us security of data by using access specifiers like private,public,protected.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / anhr computer education
In C++ a variable can be defined at any where but in 'C' it
can be defined only followed by opening curley brace.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / praveen kumar maande
To simply say c with classes is called as c++.c does not support classes, where as c++ is mainly designed to support data security which can be achieved using classes.one more difference is c++ supports exception handling which c does not support.we can access both local and global variables if the are defined by same name using scope resolution operator in the same scope itself where as c doesn't support this.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / babita
C++ HAS FEATURES LIKE DATA ENCAPSULATION,POLYMORPHISM,REUSE
ABILITY OF THE OPERATORS AND OPERATOR OVERLOADING.THESE
FEATURES ARS NOT SUPPORTED BY C.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / rajkishor yadav
In c mainly focus on data but in c++ mainly focus on object
rather than data,and in c++ we hide data other unauthorized
things by Encapsulation
It is structure Base Language but c++ object base Language.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is difference between function overloading and overriding?
Whatis the difference between oop and object based language
What is a superclass in oop?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What is destructor oops?
Templates mean
Why is polymorphism needed?
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?
can we make game by using c
why to use template classes in c++?
What is abstraction example?
char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output