First Upload

This commit is contained in:
2022-02-25 15:33:16 +02:00
commit 0c74d10f0d
295 changed files with 74784 additions and 0 deletions

20
13 - Bits/ex3.c Normal file
View File

@@ -0,0 +1,20 @@
#include "PointersLibs.h"
BOOLEAN EvenBits(byte b)
{
BOOLEAN even = TRUE;
unsigned short loop_length;
for (loop_length = sizeof(b) * EIGHT; loop_length; loop_length--)
{
even ^= b & MASK_FIRST_BIT;
b >>= ONE;
}
return (even);
}
void main(void)
{
byte b = 3;
printf("%hu\n", EvenBits(b));
}