Answer Posted / vignesh1998i
1) C is structured oriented language and C++ is an object oriented language
2) in C we must finish our decleration in the very next line of void main() , but in Cpp wherever u need a variable storage data , before that instruction we must declare it......
3) In C structures are used , in that only data members can only be declared and member functions not included , but in Cpp inside a class (same as strucutres) both data members as well as member functions can be used..
4) in Structure all the members and strucutre variables are global by default...... but in Cpp by default the data members are private.....
SIMILARITY :
1) both C & C++ uses Overloading concept....... (very important )
thank u
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is chain pointer in c?
Tell me with an example the self-referential structure?
Explain what is a program flowchart and explain how does it help in writing a program?
Explain the use of bit fieild.
Explain setjmp()?
What does sizeof int return?
How can type-insensitive macros be created?
we called a function and passed something do it we have always passed the "values" of variables to the called function. such functions calles are called a) calls by reference b) calls by value c) calls by zero d) none of the above
Explain what is the stack?
What is typedf?
Write a program to check palindrome number in c programming?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
How can I change their mode to binary?
How can I invoke another program or command and trap its output?
What do the functions atoi(), itoa() and gcvt() do?