What will be the output of the follwing code snippet
void main()
{
int x=16,y=-2;
double p=1.0;
if (y=0)
{
while(y--)
p*=x;
}
else
{
while(y++)
p/=x;
}
printf("16 to power -2 is %f\n",p);
}


Posted on by