A national language and four official languages
Malay has a particular national role, while English, Mandarin and Tamil also have official status. Hai and helo are useful short Malay greetings; salam sejahtera is a more formal expression of goodwill. English is often a practical bridge between speakers of different home languages, so visitors need not guess a person’s preferred language before saying hello.
A respectful Tamil greeting
வணக்கம் (vanakkam) is a Tamil greeting expressing respect. It is useful when you know that Tamil is the language of the encounter, rather than as an assumption about everyone in a particular neighbourhood. The doubled k in the romanisation signals a longer consonant; listen to the Tamil pronunciation to hear its rhythm.
What to do when a conversation changes language
In a multilingual setting, someone may begin a conversation in one language and continue in another. If you open with Mandarin 你好 and the other person answers in English, simply follow their lead if you can. The value of learning local greetings is not to prove fluency but to make the opening of a conversation comfortable for both people.