Let f be defined by
f(x)={g(x),k,x=a,x=a,
where g is defined for all real x. Which of the following conditions on k guarantees that f is continuous at x=a?
a) k=g(a)
b) k=2x→a−limg(x)+x→a+limg(x)
c) k=x→alimg(x) and this limit exists
d) k=x→a−limg(x)