Computer Science, asked by iramriaz06, 11 months ago

#include
int main()
{
int a = 10, b = 5, c = 3;
b != !a;
c = !!a;
printf("%d\t%d", b, c);
}
output:
5 1
Please explain the output....

Answers

Answered by madhu4147
14

Answer:

in this you want to mention include full statement

here a=10, b=5c=3

b! is not equal to a

\t is indicting is an backslash code

%d means into symbol

%d in back slash symbol

%d in b, c

Answered by amulyareddy3249
28

Answer:

Explanation:!= is a relational operator. It is just used to check the values of both the operands,there it just checks with b and !a that means it does not change the value of b

And in next ! Is logical operator and it reverse the value of operand i.e if it is true it become false and vice versa here 1st !a makes a false I.e 0 next !a makes it 1 that is c=1

Hope it is helpful!!

Similar questions