just confused in these things-
we are perfoming a/b
if we have two INT variables a=6 and b=2
in which scenario we will get answe as
similarly ,if they are float then when will we get
if we have two floats as a=3.2 and b= 1.1
then what will be the answer on division
for integer variables it prints as 3 only not 3.0
for foat variables it prints as 3.000000
if we declare like printf("%.2f",a); // upto 2 decimal places.
printf("%.2f",c); // o/p as 2.90
X->YZ , Y->XZ , ...