Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void kolos1()
- {
- char a[4];
- scanf("%d, %d, %d, %d",&a[0], &a[1], &a[2], &a[3]);
- char maska[4];
- scanf("%d, %d, %d, %d", &maska[0], &maska[1], &maska[2], &maska[3]);
- char podsciec[4];
- for (int i = 0; i < 4; i++)
- {
- podsciec[i] = a[i] & maska[i];
- }
- char hostpierwszy[4];
- for (int i = 0; i < 4; i++)
- {
- hostpierwszy[i] = podsciec[i];
- }
- hostpierwszy[3] = hostpierwszy[3] | 0b00000001;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement