Question: Write in C please Write a function int setBit(int x, int k) to set the kth bit of x if (k-1)th bit is 1

Write in C please
Write a function int setBit(int x, int k) to set the kth bit of x if (k-1)th bit is 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
