adplus-dvertising
frame-decoration

Question

Point out error in the following code -
#include<stdio.h>
int main()
{
    int x = 50, y = 100;
    if(x = = y)
        printf("x is equal to y\n");

    else if(x > y)
        printf("x is greater than y\n");

    else if(x < y)
        printf("x is less than y\n")l
    return 0;
}

a.

Error: R-Value Required

b.

Error: Expression syntax

c.

Error: L-Value Required

d.

Error: Statement missing Semicolon

Answer: (c).Error: L-Value Required

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Point out error in the following code -