In railway tracks, a small gap is left between the rails ?

In railway tracks, a small gap is left between the rails ?

A. To permit the shrinkage of metal
B. To save the cost of metal
C. To allow for the expansion during heat
D. None of them