Home » C Programming » Loops » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    int k = 0;
    while (k = 0)
    printf("Veg...\n");
    printf("Non-Veg...\n");
    }
    1. Veg...
    2. Non-Veg...
    3. Compilation Error
    4. Runtime Error
    5. None of these
Correct Option: B

Non-Veg...



Your comments will be displayed only after manual approval.