yashgolwara


{ City } patna
< Country > india
* Profession * student
User No # 106407
Total Questions Posted # 0
Total Answers Posted # 1

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 4
Users Marked my Answers as Wrong # 2
Questions / { yashgolwara }
Questions Answers Category Views Company eMail




Answers / { yashgolwara }

Question { Wipro, 11061 }

main()
{
int y=10;
if(y++>9 && y++!=10 && y++>10)
{
printf("%d",y);
else
printf("%d",y);
}
}


Answer

answer will be 13 but we need to first need to edit the code it has some errors
so could be this
#include
#include
main()
{
int y=10;
if(y++>9 && y++!=10 && y++>10)
{
printf("%d",y);
}
else
printf("%d",y);
}

so now it will give answer 13 in each process it svalues increases and three process so it will increase to 13

Is This Answer Correct ?    4 Yes 2 No