How prices are determined in stock market

How are stock prices generally determined in financial markets?