source code:
#ifndef __BIT_H__
#define __BIT_H__
#define V char ver[6] = {10,2,3,4,5,6}
unsigned char vver[6] = {10,2,3,4,5,6};
#endif /*__BIT_H__ */
#include <stdio.h>
#include "bit.h"
#define BIT3 (0x1 << 3)
static int a;
void set_bit3(void)
{
a |= BIT3;
}
void clear_bit3()
{
a &= ~BIT3;
}
int main()
{
a = 3;
V;
printf("a = %d\n", 0x1 << 3);
set_bit3();
printf("a = %d\n", a);
clear_bit3();
printf("a = %d\n", a);
printf("a = %d\n", ver[0]);
printf("a = %d\n", vver[0]);
return 0;
}