Given that,
$$ \delta(t) = \begin{cases} \infty & \text{if } t = 0 \\ 0 & \text{if } t \ne 0\\ \end{cases}$$
How is it that,
(A)
$$ \int_{-\infty}^\infty \delta(t) dt = 1 $$
(B)
$$ \int_{-\infty}^\infty f(t) \delta(t) dt = f(0) $$ considering $f$ continuos at $t=0$
Thanks in advance
The "delta function" cannot actually be defined as a function. It can be interpreted either a distribution or as a measure.