Control Instructions

Q1: Which of the following statements are correct about the below program?
#include<stdio.h>
int main()
{
    int n = 0, y = 1;
    y == 1 ? n=0 : n=1;
    if(n)
        printf('Yes\n');
    else
        printf('No\n');
    return 0;
}

A None of above

B Error: Lvalue required

C Error: Syntax error

D Error: Declaration terminated incorrectly

ANS:A - Error: Declaration terminated incorrectly

No answer description is available. Let's discuss.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.