Image copyright Reuters Image caption Many Thais have been praying for the king's health

King Bhumibol Adulyadej of Thailand has attended an official ceremony, quashing speculation about his health.

The ailing monarch had failed to appear for the confirmation of two ministers scheduled for Friday, raising concerns.

However on Sunday the king was able to meet the two ministers appointed by PM Prayuth Chan-ocha, a former general who seized power in a coup in May.

The 86-year-old king has been staying at a hospital in Bangkok following an operation last month.

His health is a sensitive issue in Thailand. Any discussion about the royal succession is tightly constrained by a stringent lese-majeste law.

The BBC's Jonathan Head in Bangkok says the king is accorded a revered status that is considered vital to the country's stability.

The world's longest-reigning monarch, he has been on the throne in Thailand since 1946

Gen Prayuth Chan-ocha was appointed prime minister by the military-appointed parliament in August.