Dividing Integers (& Casting Precedance)
כ"ו תשרי תשס"ז - October 17, 2006Quiz:
What does the following code print:
int i,j;
float k;
i = 5;
j = 2;
k = i/j;
printf("%f\n",k);
Quiz:
What does the following code print:
int i,j;
float k;
i = 5;
j = 2;
k = i/j;
printf("%f\n",k);