Aşağıdaki C programı çalıştırıldığında bu programın çıktısı ne olur? kaynak : The C Puzzle Book – Alan R. Feuer
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
#include <stdio.h> int main() { int x, y, z; x = 3; y = 2; z = 1; printf("%d\n", x | y & z); printf("%d\n", x | y & ~z); printf("%d\n", x ^ y & ~z); printf("%d\n", x & y && z); printf("%d\n", ~x | x); printf("%d\n", x ^ x); return 0; } |
Sorunun yanıtı şu seçeneklerden