human
Bitwise AND of all the elements of array | Function to calculate bitwise AND.
Initialise ans variable is arr [ 0 ].
Traverse the array compute AND.
Return ans.
Driver Code.
Function Call to find AND"
Solution in Python:
assistant
#Here is code to bitwise AND of all the elements of array and the other steps required.
 def find_and ( arr ) :
	ans = arr [ 0 ]
	for i in range ( 1 , len ( arr ) ) :
		ans = ans & arr [ i ]
	return ans
if __name__ == ' _ _ main _ _ ' :
	arr = [ 1 , 3 , 5 , 9 , 11 ]
	print ( find_and ( arr ) )