The expectation does vary from place to place - in fine dining restaurants where you receive personal service, a tip would always be expected (while never compulsory, it would be considered rude unless there was a problem with the service), whereas in the most casual of restaurants tipping is not universal.