In nucleic acids, phosphodiester bonds link nucleotides together. These bonds form between the 3'-hydroxyl group of one nucleotide and the 5'-phosphate group of another nucleotide. Therefore, the linkage is between the 5' carbon of one sugar and the 3' carbon of the next sugar.
Thus, the correct answer is between the 5' and 3' carbons.