45 views

ago | 45 views
0
print pattern (0011+0101 +1001+0110+ 1010+1100)* + 11 + 00
0
something wrong in loop condition.

ignore the question. It may lead to infinite loop too.

if P1 : while(lock==0); and P2 : while(lock==1);

then option B correct.

if P1 : while(lock!=0); and P2 : while(lock!=1);

then option C correct.
0
why given conditions are wrong? @Shaik?
0
both are same condition, rt ?

equal to 0 or not equal to 1 means same for the variable which have the value either 1 or 0.
0
The only characters ever printed are $0$ and $1$ so such string will always belong to $(0+1)^*$ ..?