Hi Friends,
Can any of you pls tell me (in detail) which of the following options will be faster?
Option 1:
int fun()
{
if( !cm_aObject )
return -1;
return cm_aObject->getNum();
}
Option 2:
int fun()
{
try{
return cm_aObject->getNum();
}catch(...){
return -1;
}
}
Thanx,
Amit