They typically don’t. However, in WW2, countries would often stick whistles onto their bombs in order to make the bombs more terrifying to their victims.
If you’re talking about movies and TV shows, it’s an affectation to convey to the audience that a mortar/artillery round is incoming; otherwise, there’d be no way to know.
Latest Answers