10 in binary form is 1010

n=1010

we have to calculate => n&n|1 = (n & n) | 1 = (1010 & 1010) | 0001 = 1010 | 0001 = 1011 = 11(in decimal).

so the ans is 11.

n=1010

we have to calculate => n&n|1 = (n & n) | 1 = (1010 & 1010) | 0001 = 1010 | 0001 = 1011 = 11(in decimal).

so the ans is 11.