1,
#include <stdio.h>
#define MAX 32
void change_bit(int a, int p, int v)
{
int n;
int i = 0;
int b[MAX] = {
0};
while(a > 0)
{
n = a % 2;
b[i] = n;
i++;
a = a / 2;
}
b[p - 1] = v;
while(i)
{
printf