Question
#include<stdio.h>
int main()
{
int i = 10, j = 20;
if(i = 5) && if(j = 10)
printf("Have a nice day");
retrurn 0;
}
Which of the following statements are correct about the below program?
#include<stdio.h>
int main()
{
int i = 10, j = 20;
if(i = 5) && if(j = 10)
printf("Have a nice day");
retrurn 0;
}
Answer: Option C
Was this answer helpful ?
"Expression syntax" error occur in this line if(i = 5) && if(j = 10).
It should be like if((i == 5) && (j == 10)).
Was this answer helpful ?
More Questions on This Topic :
Question 9.
#include<stdio.h>
int main()
{
int i=4;
....
Submit Solution