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 |
what are Access specifiers in C++ class? What are the types?
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.
Explain the static storage classes in c++.
Should I learn c or c++ or c#?
How does throwing and catching exceptions differ from using setjmp and longjmp?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
If there are two catch statements, one for base and one for derived, which should come first?
What is the size of pointer ? Also size of pointer in 64 bit pointer
In which memory a class gets stored(in heap /in stack)? And why??
What is a constructor in c++ with example?
What is #include math h in c++?
What is the use of setprecision in c++?