chinna


{ City } guntur
< Country > india
* Profession * mts
User No # 9953
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 44
Users Marked my Answers as Wrong # 19
Questions / { chinna }
Questions Answers Category Views Company eMail




Answers / { chinna }

Question { Ness Technologies, 14063 }

What is R T T I ?


Answer

Run Time Type Information ( RTTI ) : Run-time type
information (RTTI) is a mechanism that allows the type of
an object to be determined during program execution.

There are three main C++ language elements to run-
time type information:
The dynamic_cast operator : Used for conversion of
polymorphic types.

The typeid operator : Used for identifying
the exact type of an object.
The type_info class : Used to hold the type information
returned by the typeid operator.

Is This Answer Correct ?    15 Yes 2 No

Question { Pfizer, 37239 }

What is the difference between pass by reference and pass by
value?


Answer

in Pass by value; if any change in variable in the sub-
function may not reflected to the main function. where as
in pass by reference the change in the variable may reflect
to the original value in the main funtion.

ex : // Pass by Reference

void Get( int &nIndex){
nIndex = 10;
}

void main()
{
int x = 100;
cout< }

o/p : 10;

ex : // Pass by Value

void Get( int nIndex){
nIndex = 10;
}

void main()
{
int x = 999;
cout< }

o/p : 999

Is This Answer Correct ?    29 Yes 17 No