Find an example of a non-negative function $(f\geq 0)$ which is continuous and such that $\int_{0}^{\infty}f(x)dx$ is finite ($\int f < \infty$) but $\lim_{x\rightarrow\infty}f(x)$ does not exist.
Also, is it possible that $\int_{0}^{\infty}f(x)\,dx$ exist but $f(x)$ is not bounded?

Hint:
Let the graph of $f$ consist of a sequence of disjoint isosceles triangles of height $n$ and base length $\frac{1}{n 2^{n}}$. The area of the $n$-th triangle is $$\frac{1}2 \cdot n \cdot \frac{1}{n2^{n}} = \frac{1}{2^{n+1}}$$
so the integral is $$\int_0^\infty f(x)\,dx = \sum_{n=1}^\infty \frac{1}{2^{n+1}} = \frac12 <+\infty$$
However, $f$ is clearly unbounded. Also $\lim_{n\to\infty} f(x)$ does not exist.