what is the main difference between c and c++?
Answer Posted / satyajith srinivas
IN c-programe the main function could not return a value
but in the c++ the main function shuld return a value
| Is This Answer Correct ? | 887 Yes | 1178 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
What are the types of abstraction?
What is the significance of classes in oop?
What is this pointer in oop?
Why is encapsulation used?
What is new keyword in oops?
Give two or more real cenario of virtual function and vertual object
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is the full form of oops?
What is object in oops?
What is the oops and benefits of oops programming?
Why do we use oops?
What is the diamond problem in inheritance?
What is the difference between inheritance and polymorphism?
is there any choice in opting subjects like 4 out of 7