Greeting styles map the world into a few broad zones, though every country has its own dialect of the rules. Handshakes dominate Europe, the Americas, Africa, and business settings almost everywhere. Bows govern Japan and Korea, with depth and duration carrying meaning locals do not expect foreigners to master; a modest nod plus a smile is graciously received. Cheek kisses rule much of southern Europe and Latin America, with the number of kisses varying by country and even region, generally between people who know each other rather than at first business meetings. South Asia offers the pressed-palms greeting alongside handshakes, and much of the Muslim world pairs handshakes with the hand-on-heart gesture.
Age and gender modify everything: elders are greeted first and with more formality in most cultures, and physical greetings between genders vary from expected to avoided, especially in conservative religious settings, where the safe move is waiting to see whether the other person extends a hand and mirroring gracefully if they do not.
The visitor's universal strategy is simple: let the local initiate, mirror what you receive, and lead with a warm verbal greeting in the local language, which buys enormous goodwill regardless of what your hands do. Getting the physical form slightly wrong while being visibly warm is forgiven everywhere; coldness is not.