Use this following code you will get the prefix.
echo Mage::getSingleton('core/resource')->getTableName('core_config_data');
echo Mage::getSingleton('core/resource')->getTableName('core_config_data');
I am a Magento 2 Certified Developer, and I have more than 10 years of experience in the Magento, PHP, and WordPress sectors. I specialise in backend and frontend Magento module development. In addition, when someone updates their store's products, those will be instantly updated on the destination domain via API. Also, I have developed a Magento multivendor marketplace website. I have developed more than 700 custom modules as per the requirements.