what is the main difference between c and c++?
Answer Posted / g.santhoshini
In c there is a limit for length of identifier should not
preceeded more than 8 characters where as in c++ there is no
limit for length of identifiers.
and in c the file is saved with the extension .c ,in c++ the
file extension is .cpp.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
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
Explain virtual inheritance?
What is cohesion in oop?
What is the oops and benefits of oops programming?
Why do we use inheritance?
What is object and class in oops?
What are the three main types of variables?
What are benefits of oop?
What is pure oop?
What do you mean by Encapsulation?
#include
What does oop mean in snapchat?
Explain the concepts involved in Object Oriented programming.
What is polymorphism used for?
What does <> mean pseudocode?