Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool g(char a[], int b)
- {
- char c=a[b/8];
- c = c&(0b10000000>>(b%8));
- if (c == 0)
- {
- return false;
- }
- else
- {
- return true;
- }
- }
- void f(char a[], int b, bool c)
- {
- if (c == 1)
- {
- a[b/8]=c|(0b10000000>>(b%8));
- }
- else
- {
- a[b/8] = c&(0b01111111 >> (b%8));
- }
- }
- void kolos1()
- {
- char a[20];
- int *ptr;
- ptr = (int*)a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement