MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/bitmasking/bit-functions.cpp:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33n=n&mask;
34}
35int main(){
36 //:w
37 //cin.tie(0)->sync_with_stdio(0);
38 int n;
39 cout<<"Enter the number: "<<endl;
40 cin>>n;
41 int i;
42 cout<<"enter the pos of bit: "<<endl;
43 cin>>i;
44 clearBitInRange(n,i,3);
45 cout<<n<<endl;
46
47 return 0;
48}
49
50

Callers

nothing calls this directly

Calls 1

clearBitInRangeFunction · 0.85

Tested by

no test coverage detected