We need to guess the output of the following code.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

We need to guess the output of the following code....

#include<stdio.h> int main(); { int i=1,j=0,k; k=i&j; k l =!!k; printf("%d",k); return 0; }

24th Mar 2018, 9:50 AM
CrazyPotato
CrazyPotato - avatar
2 Answers
+ 2
Thank you Michal For your answer, you were of great help.
24th Mar 2018, 5:00 PM
CrazyPotato
CrazyPotato - avatar
+ 1
1&0 is 0=k !!k is the same as k, that is 0 k=0|0 is 0 output should be 0
24th Mar 2018, 10:50 AM
michal