N Nguyên Lê New member Sep 19, 2021 #1 What is the output of the following code? Code: ~xor(and(1,0),~xor(and(1,0),0)) A. 0 B. 1 C. NaN D. Error
What is the output of the following code? Code: ~xor(and(1,0),~xor(and(1,0),0)) A. 0 B. 1 C. NaN D. Error
T Tiên Hương New member Sep 19, 2021 #2 Answer: a Explanation: and(1,0) is 0. ~xor(0,0,) is 1. But xor(1,0) is 1. Hence, ~xor(1,0) is 0. Output: 0 Upvote 0 Downvote
Answer: a Explanation: and(1,0) is 0. ~xor(0,0,) is 1. But xor(1,0) is 1. Hence, ~xor(1,0) is 0. Output: 0