Q. | What will be the output of following program ? #include
int main( )
{
int i=2,j=3,k,l;
float a,b;
k = i/j * j;
l = j/i * j;
a = i/j * j;
b = j/i * i;
printf("%d %d%f%f\n",k,l,a,b);
return 0;
}
|
|||||||
|
Answer: | Option B | |
Explaination: |
As K and L are integer variables so it prints the integer value as result and a and b are float variable, so float value will be print as result. |
Discussion
Your Comments Goes here... |
Name | Discussion |
---|