Multiple choice

What would be the output of the following program? #include<stdio.h> #include<conio.h> int main() {

int i = 2, j = 3, k, l ; float a, b ; k = i / j * j ; l = j / i * i ; a = i / j * j ; b = j / i * i ; printf( %d %d %f %f, k, l, a, b ) ; getch(); }

  1. k = 0, l = 2, a = 0.00000, b = 2.00000

  2. ERROR:-cannot convert an integer to float

  3. k = 0, l = 2, a = garbage value, b = garbage value

  4. k = 0, l = 2, a = 0, b = 2

  5. None of these

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

 Output will be k = 0, l = 2, a = 0.0000 and b = 2.0000 Hence, option 1 correct.