I donβt understand how and when the call to this predefined function is made sqrt(), also if I define my own function sqrt(), it shows a compilation error, so why does the given function call work and call the user-defined function, although both codes are in the section (TEXT ) of my executable file.
#include<stdio.h>
int x = sqrt(16);
int main()
{
printf(" x = %d\n",x);
return 0;
}
OUTPUT:
x = 4;
When I call the sqrt () function defined by me, I get the following error, but the same error does not appear when I use the predefined function
ERROR: initialization element is not constant
source
share