bsc

Comprehensive codebase and cou...
Log | Files | Refs | Activity | README | LICENSE

root / semester_1 / letusc / luc102.c

luc102.c (564B)


      1 /* What will be the output of the provided program segment involving bitwise operators?
      2 */
      3 /* Let Us C, Chap- 21 (Operations on Bits), Qn No.: A(d) */
      4 
      5 /* This file is auto-generated by a bot. */
      6 /* This code is not compiled; it is for reference only. */
      7 
      8 
      9 #include <stdio.h>
     10 #include <stdlib.h>
     11 
     12 int main()
     13 {
     14     int i = 32, j = 65, k, l, m, n, o, p;
     15     
     16     k = i | 35; 
     17     l = ~k; 
     18     m = i & j;
     19     n = j ^ 32; 
     20     o = j << 2; 
     21     p = i >> 5;
     22 
     23     printf("k = %d l = %d m = %d\n", k, l, m);
     24     printf("n = %d o = %d p = %d\n", n, o, p);
     25 
     26     return 0;
     27 }
© notamitgamer • Site Built: 2026-09-05 01:53:16 UTC • git-mirror commit: c170d72 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror