According to Starling's law of the heart, cardiac output is directly related to which of the following variables?
a. Contractility
b. Preload
c. Afterload
d. Heart rate