4. Suppose function $$f(x) = \begin{cases} cx^2 + 2x, & \text{if } x < 2 \\ 2x + 4, & \text{if } x \geq 2 \end{cases}$$ is continuous on $$(-\infty, \infty)$$. Then, the value of constant $$c$$ is (4).