Let $X$ be a topological space and $Y$ a topological group. Then $C(X,Y)$ is a group, and can also be endowed with the compact-open topology.
Is $C(X,Y)$ in the compact-open topology necessarily a topological group? If not, is there some property of $X$ which will guarantee it?