Rule 112 of the Highway Code is very clear on the purpose of vehicle horns, and states that they are only to be used in order to warn another road user of your presence. That means you should never honk as a greeting, or as an expression of annoyance. Sometimes this is clear-cut.