What was the deciding factor in the collapse of Songhai?
A. It faced rivalries within the ruling family.
B. It relied too heavily on the salt-gold trade.
C. It was invaded by a foreign army with guns.
D. It valued Islamic learning over military strength.