Driver code
int main ( ) { int arr [ ] = { 8 , 2 , 4 , 15 , 1 } ; int n = sizeof ( arr ) / sizeof ( arr [ 0 ] ) ; if ( containsElement ( arr , n ) ) cout << " Yes " ; else cout << " No " ; return 0 ; }