difference between the c++ and c languages
Answers were Sorted based on User's Feedback
Answer / thana_8889
c has no object but c++ has object
c topdown approach c++ bottom up approach
c cannot be overloading c++ we can do
c is the subset of c++
Is This Answer Correct ? | 15 Yes | 0 No |
Answer / raj&
<c is based pop principals
>c++ is based oops principals
<(<c
>c++)
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / achal
c++ is quite different from c. Here I add to above answer.
1. C++ has more rigid typecasing rules while c does not.
2. In C, structure copy is not permissible while most c++
compilers provide default copy constructors.
Is This Answer Correct ? | 3 Yes | 3 No |
Answer / jaya
in c data hiding is not possible and we have to write
complete program at a time.whereas in c++ data hiding is
possible and one can divide a huge program into certain
small programs later combine it into one as per one's
choice.moreover we hav header file different.eg:<stdio.h>
in c supports printf & scanf statements while <iostearm.h>
in c++ supports cout statements......
Is This Answer Correct ? | 0 Yes | 0 No |
Explain the scope of resolution operator.
Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
In what situations do you have to use initialization list rather than assignment in constructors?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
Is map sorted c++?
Is c++ a high level language?
Describe the advantages of operator overloading?
What is the stack?
Explain explicit container.
What is heap sort in c++?
i want to know how to copy arrary without using any method or function. I have tried the below using System; class e4 { static void Main(string[] args) { int a,b; int[ ] m= new int[5]; int[ ] n= new int[5]; for(a=0;a<=4;a++) { Console.WriteLine("enter any value"); m[a]=Convert.ToInt32(Console.ReadLine()); m[a]=n[a]; } for(b=0;b<=4;b++) { Console.WriteLine(n[b]); } } } but it will give wrong result can anyone solve this problem