In the military this is a must, at least in greeting superior officers. Not so common anywhere else. However I know a lot of guys will give a quick salute when there is no time for words and it's pretty much understood that they are acknowledging you but don't have time to stop and BS.