Driver program
int main ( ) { bool mat [ R ] [ C ] = { { 0 , 1 , 0 , 1 , 0 } , { 0 , 1 , 0 , 1 , 1 } , { 1 , 1 , 0 , 1 , 0 } } ; cout << " Area ▁ of ▁ the ▁ largest ▁ rectangle ▁ is ▁ " << maxArea ( mat ) ; return 0 ; }