bookmark

Understanding recursion - Stack Overflow


Description

void emptyVase( int flowersInVase ) { if( flowersInVase > 0 ) { // take one flower and emptyVase( flowersInVase - 1 ) ;

} else { // the vase is empty, nothing to do } }

Preview

Tags

Users

  • @sac

Comments and Reviews