what is the main difference between c and c++?
Answer Posted / sridivyapuvvada
C is object based language & C++ is object oriented
language.
C is top-bottom approach & C++ is bottom-top approach.
In C,we use PRINTF() ,SCANF() as standard input/output
functions & in C++,we can use COUT<< or CIN>> as standard
input/output function.
In C we are using #include<stdio.h> as header file, but
in C++ we are using #include<iostream.h> as header file.
C doesn't support operator overloading & C++ support
operator overloading.
C does not support the c++ programme but C++ support the C
program.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is constructor overloading in oop?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is encapsulation oop?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Can we define a class within the interface?
write knight tour problem which is present in datastructure
Why polymorphism is used in oops?
what are the realtime excercises in C++?
What is encapsulation with real life example?
Why interface is used?
What is a class and object?
What is encapsulation and abstraction? How are they implemented in C++?
What do you mean by abstraction?
write a programe to calculate the simple intrest and compund intrest using by function overlading