Home » C Programming » Decision Making » Question
  1. Which of the following statements are correct about the following program?
    #include <stdio.h>
    int main ( )
    {
    int a = 20, b = 30;
    if (a % 2 = b % 3)
    printf ("\n Carpathians");
    return 0;
    }
    1. Error : 'Expression syntax'
    2. Error : 'L value required'
    3. Error : 'R value required'
    4. The code runs successfully.
Correct Option: B

= must have L value
Error : 'L value required'



Your comments will be displayed only after manual approval.