Posts

Showing posts from March, 2021
BIT MANIPULATION SE HOGA  using   namespace   std ; #include <iostream> int   get (  int   a   ,  int   pos ) {      return  ((  a   &  (  1   <<   pos )) != 0 ); } int   set (  int   a  ,  int   pos ) {      return   a   |  (  1 << pos ); } void   ank  (  int   array [] ,  int   a  ) {      int   res = 0  ;      for (  int   i   = 0  ;  i < 4 ;  i ++ )     {          int   c = 0 ; // I DID A MISTAKE THAT I INITILIZED THIS FROM THERE                                     BUT IT SHOULD BE ZERO AGA...