Answer this..................
Attachments:
MUKESHAMBANI2002:
Hiiii... anushka
Answers
Answered by
0
#logical not operator results in true or 1 when the condition is not fulfilled
like
c=0
for(i=0;i less than equal to 10;i++)
if(i!=1)
c++;
the null c will increment only when i is not equal to 1
therefore the value of c when the loop ends will be 9 because it will not increment for i=1.
#and operator will result in true or 1 only when both conditions are fullfilled otherwise false or0
#or operator will result in true or high 1 even if one of the conditions is true otherwise false or 0
HOPE THIS HELPS :)
like
c=0
for(i=0;i less than equal to 10;i++)
if(i!=1)
c++;
the null c will increment only when i is not equal to 1
therefore the value of c when the loop ends will be 9 because it will not increment for i=1.
#and operator will result in true or 1 only when both conditions are fullfilled otherwise false or0
#or operator will result in true or high 1 even if one of the conditions is true otherwise false or 0
HOPE THIS HELPS :)
Answered by
2
u can found this on Google
Similar questions
Hindi,
8 months ago
Political Science,
8 months ago
Accountancy,
8 months ago
English,
1 year ago
Math,
1 year ago
Math,
1 year ago
Chemistry,
1 year ago