Hi All

I am not able to find out the correct usage of the keyword
<static_cast>.

can some body explain it with example?

Also

void main()
{
int a = 100, b = 30;
float f = a/b;
printf("%f",f);
}

void main()
{
int a = 100, b= 30;
float f = static_cast<float>(a/b);
printf("%f",f);
}

the output of both the progs is same.
what difference has the keyword <static_cast> made in the 2nd prog?

waiting for response

Regards
Davinder





:mad: :mad: