what is the main difference between c and c++?
Answer Posted / er.ashish singh
1)C++ allows the programmer to create classes, which are
somewhat similar to C structures. However, to a class can
be assigned methods, functions associated to it, of various
prototypes, which can access and operate within the class,
somewhat like C functions often operate on a supplied
handler pointer.
2)Although it is possible to implement anything which C++
could implement in C, C++ aids to standarize a way in which
objects are created and managed, whereas the C programmer
who implements the same system has alot of liberty on how
to actually implement the internals, and style among
programmers will vary alot on the design choices made.
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is object in oops?
What is coupling in oop?
What is variable example?
What does <> mean pseudocode?
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 type of question are asked in thoughtworks pair programming round ?
What is oops concept with example?
What is polymorphism what is it for and how is it used?
What are the three main types of variables?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is oops and why we use oops?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is abstraction oop?
Why is polymorphism used?
What is new keyword in oops?