C Programming Tutorial - 27: Constants (Part-2)

preview_player
Показать описание
In this tutorial we would continue our discussion on constants, will see some of the basic differences between between constants and variables and will also check out another method of defining constants in our programs.

Thanks for watching!
Рекомендации по теме
Комментарии
Автор

Hi Madhur,

Could you please tell me what is wrong in my code? The area is showing 99 when I use pow function. please see below #include<stdio.h>

main ()
{
    const int side=10;
    int area;
    area=pow(side, 2);
    printf("The area of square with side %d is %d", side, area);

}

dillipverify
visit shbcf.ru