Show category name along with product name on listing page Magento

<?php
$cat = $_product->getCategoryIds();
echo Mage::getModel(“catalog/category”)->load($cat[0])->getName();
?>

Share