There are many ways of greeting people,both formal and informal.The speaker'stask is to choose the appropriate one for the situation.lt is also useful to know lots of different ones so as to not repeat yourself when you meet a number of people at the same.As with any other aspect,you need to be careful about using informal expressions with people who you do not know well or whose rank or status is higher than yours.