Answer
Answer is $0011100$.
Work Step by Step
$$\text{Solution}$$
Here $A = 1000111, B = 101011.$
Find $A - B = ?$ using 1's complement
$\rightarrow$ First, find 1's complement of $B = 101011$
$\rightarrow $ Write out the numbers as if you were subtracting decimals.
$$-\begin{array}{r|r}
1000111 \\
101011 \\
\hline
\end{array}$$
$\rightarrow $ Let's use the 1's Complement Method
$\rightarrow $ 1's complement of a number is obtained by subtracting all bits from $11$
$\rightarrow $ $\text{1's complement of 101011 is}$
$$-\begin{array}{r|r}
1111111 \\
0101011 \\
\hline
1 0 1 0 1 0 0
\end{array}$$
$\rightarrow $ Now Add this 1's complement of B to A
Note $\rightarrow$ Addition Rules
$0 + 0 = 0$
$0 + 1 = 1$
$1 + 0 = 1$
$1 + 1 = 10$ ("$0$" in the column, carry $1$ to the next bit)
So,
$$+\begin{array}{c|c}
1 0 0 0 1 1 1 \\
1 0 1 0 1 0 0 \\
\hline
1 0 0 1 1 0 1 1
\end{array}$$
$\rightarrow$ left most bit of the above result is called carry and add it to the rest part of the result $0011011.$.
$$+\begin{array}{r|r}
0 0 1 1 0 1 1 \\
1 \\
\hline
0 0 1 1 1 0 0
\end{array}$$
so the Answer is $0011100$.