What happens in echo "20 + 5" | bc?
echo "20 + 5" | bc
The shell evaluates the arithmetic before either command starts.
The arithmetic expression is sent to bc through standard input for evaluation.
bc
bc runs first and sends its result backward for echo to calculate.
echo
The expression is printed literally and never evaluated.