What is the difference between pass by reference and pass by
value?
Answer Posted / anandan
in pass by referance the parameters are passed as the
address of the variables whereas in pass by value the
variables are directly passed as parameters
| Is This Answer Correct ? | 99 Yes | 17 No |
Post New Answer View All Answers
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).
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is the difference between abstraction and polymorphism?
How long to learn object oriented programming?
What is the main purpose of inheritance law?
What are benefits of oop?
What is overloading in oops?
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 is polymorphism in oop example?
What is a function in oop?
What is the difference between a constructor and a destructor?
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
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< Why do we need oop? write a program to find 2 power of a 5digit number with out
using big int and exponent ?