[step:Fix the notation for cycles, boundaries, and connecting homomorphisms]
For a chain complex $X_*$ with differential $d_{X,n}: X_n \to X_{n-1}$, define
\begin{align*}
Z_n(X_*) &:= \ker(d_{X,n}), &
B_n(X_*) &:= \operatorname{im}(d_{X,n+1}), &
H_n(X_*) &:= Z_n(X_*) / B_n(X_*).
\end{align*}
For a cycle $x \in Z_n(X_*)$, write $[x] \in H_n(X_*)$ for its homology class.
The connecting homomorphism
\begin{align*}
\partial_n: H_n(C_*) \to H_{n-1}(A_*)
\end{align*}
is defined as follows. Given $[c] \in H_n(C_*)$ with $c \in Z_n(C_*)$, choose $b \in B_n$ such that $p_n(b) = c$. Since $c$ is a cycle and $p$ is a chain map,
\begin{align*}
p_{n-1}(d_{B,n}(b)) = d_{C,n}(p_n(b)) = d_{C,n}(c) = 0.
\end{align*}
Exactness of
\begin{align*}
0 \to A_{n-1} \xrightarrow{i_{n-1}} B_{n-1} \xrightarrow{p_{n-1}} C_{n-1} \to 0
\end{align*}
gives a unique element $a \in A_{n-1}$ such that
\begin{align*}
i_{n-1}(a) = d_{B,n}(b).
\end{align*}
We first verify that $a$ is a cycle. Since $i: A_* \to B_*$ is a chain map,
\begin{align*}
i_{n-2}(d_{A,n-1}(a))
&= d_{B,n-1}(i_{n-1}(a)) \\
&= d_{B,n-1}(d_{B,n}(b)) \\
&= 0.
\end{align*}
Exactness at $A_{n-2}$ gives injectivity of $i_{n-2}$, hence $d_{A,n-1}(a)=0$ and $a \in Z_{n-1}(A_*)$. Therefore $[a] \in H_{n-1}(A_*)$ is meaningful, and we set
\begin{align*}
\partial_n([c]) := [a].
\end{align*}
This assignment is independent of the lift and of the representative. If $b_1,b_2 \in B_n$ are two lifts of the same cycle $c$, then $p_n(b_1-b_2)=0$, so exactness at $B_n$ gives $u \in A_n$ with $i_n(u)=b_1-b_2$. If $a_1,a_2 \in A_{n-1}$ are the corresponding elements, then
\begin{align*}
i_{n-1}(a_1-a_2)
&= d_{B,n}(b_1-b_2) \\
&= d_{B,n}(i_n(u)) \\
&= i_{n-1}(d_{A,n}(u)).
\end{align*}
Injectivity of $i_{n-1}$ gives $a_1-a_2=d_{A,n}(u)$, so $[a_1]=[a_2]$ in $H_{n-1}(A_*)$. If $c$ is replaced by the homologous cycle $c+d_{C,n+1}(v)$ with $v \in C_{n+1}$, choose $w \in B_{n+1}$ with $p_{n+1}(w)=v$ by surjectivity of $p_{n+1}$. Then $b+d_{B,n+1}(w)$ is a lift of $c+d_{C,n+1}(v)$, and its boundary is still $d_{B,n}(b)$ because $d_{B,n}d_{B,n+1}=0$. Thus the same class $[a]$ is obtained. Hence $\partial_n: H_n(C_*) \to H_{n-1}(A_*)$ is a well-defined homomorphism.
The primed connecting homomorphism $\partial'_n: H_n(C'_*) \to H_{n-1}(A'_*)$ is defined in the same way using $i'$, $p'$, and the differential of $B'_*$; the same argument proves that it is well-defined.
[/step]