The question specifically asks to find an equation for the constant $c$ that minimizes this expression. The typical method here is to let this expression be a function of $c$ and find the minimum of this function with respect to $c$. Thus, we have
$$ f(c) = \int_0^1 |e^x - c| \ dx$$
We have to be careful here, as we are not sure if the expression inside of the absolute value is always positive, always negative, or changes sign somewhere in $[0,1]$. Since $e^x$ is monotonically increasing, we know that there will only be at most one sign change on this interval. If we assume that $c \leq e^x$ on $[0,1]$, that is, $c \leq 1$, then we have that this is always positive, and
$$f(c) = \int_0^1 e^x - c \ dx = e - c -1$$
$$f'(c) = -1$$
On the other hand, if $e^x \leq c$, or $c \geq e$ on $[0,1]$, we have
$$f(c) = \int_0^1 c - e^x \ dx = c - e + 1$$
$$f'(c) = 1$$
For both of these cases, $f(c)$ does not obtain a minimum value, and by observation, in each case respectively, we have that our choices for $c$ are $c = 1$ and $c = e$. The former integrates $e - 2 \approx .719$, and the latter to $1$. We now consider the case that $c \in (1, e)$, and see if our minimizing values for $c$ offer any improvement.
As we had previously stated, for the expression $e^x - c$, there will be exactly on e sign change for $c \in (1,e)$. Suppose that this sign change occurs at $x = x^*$. Then, we can rewrite our integral as
\begin{align*}
f(c) = \int_0^1 |e^x - c| \ dx &= \int_0^{x^*} c - e^x + \int_{x^*}^1 e^x - c \\[1em]
&= - 2e^{x^*} + 2cx^* + 1 + e - c
\end{align*}
From our definition of $x^*$, we have that
$$e^{x^*} - c = 0 \quad \Longrightarrow \quad e^{x^*} = c \quad \Longrightarrow \quad \log c = x^*$$
Making these substitutions into the above expression, we have
$$f(c) = -3c + 2c \log c + 1 + e$$
The minimum is obtained by setting $f'(c) = 0$ and checking the endpoints (details omitted), giving us a value of $c = e^{1/2}$. Then $f(e^{1/2}) = (\sqrt{e} - 1)^2 \approx .421$, making $e^{1/2}$ our desired value for our constant $c$.