Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int k = 0, L = 0;
    while (k < 10, L < 15)
    {
    k++;
    L++;
    }
    printf("%d, %d\n", k, L);
    }
    1. 10, 15
    2. 15, 10
    3. Compilation Error
    4. Garbage value
    5. 15, 15
Correct Option: E

15, 15



Your comments will be displayed only after manual approval.