luc102.c (755B)
1 /* 2 * Author : Amit Dutta <amitdutta4255@gmail.com> 3 * Date : 08 Feb 2026 4 * Repo : https://github.com/notamitgamer/bsc 5 * License : MIT License (See the LICENSE file for details) 6 */ 7 8 /* What will be the output of the provided program segment involving bitwise operators? 9 */ 10 /* Let Us C, Chap- 21 (Operations on Bits), Qn No.: A(d) */ 11 12 /* This file is auto-generated by a bot. */ 13 /* This code is not compiled; it is for reference only. */ 14 15 16 #include <stdio.h> 17 #include <stdlib.h> 18 19 int main() 20 { 21 int i = 32, j = 65, k, l, m, n, o, p; 22 23 k = i | 35; 24 l = ~k; 25 m = i & j; 26 n = j ^ 32; 27 o = j << 2; 28 p = i >> 5; 29 30 printf("k = %d l = %d m = %d\n", k, l, m); 31 printf("n = %d o = %d p = %d\n", n, o, p); 32 33 return 0; 34 }