methodA() ;
                  
                  
                       methodB() ; //assume this method throws the exception
                  
                  
                       methodC() ;
                  
                  
                  }
                  
                  
                  catch(...)
                  
                  
                  {
                  
                  
                       return 3;
                  
                  
                       cout<<"catch block"<<endl;
                  
                  
                  }
                  
                  
                  hi
                  
                  
                  i know if i wanna return be effective,the catch block has to be in method
                  
                  
                  but something like this would be harmful for stack?(because nothing returned from methodB)
                  
                  
                
Stack unwinding takes place.
Обсуждают сегодня