Speed of sound in a medium depends on inertial and elastic properties as v=√‌
B
P
for gases and v=√‌
Y
P
for solids. Since the elastic property of solid happens to be many folds greater than that of gases, the speed of sound in solids i5 higher than in gases. Also, bulk modulus of gases varies between 0 and ∞(B=−v‌