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