Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int i = 0, j = 0;
    while (i < 5, j < 10)
    {
        i++;
        j++;
    }
    printf("%d, %d\n", i, j);
}

A. 5, 5

B. 5, 10

C. 10, 10

D. Syntax error

Answer: Option C


This Question Belongs to C Program >> Control Structures

Join The Discussion

Related Questions on Control Structures