add c lab

This commit is contained in:
IliyaSomoilov
2026-09-10 12:04:19 +03:00
parent a8bcb9c24a
commit d5a2eedc77
38 changed files with 62 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
/* Type your code here, or load an example. */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
// int main(void) {
// int a = 26;
// int b = 5;
// int c = a / b;
// return 0;
// }
unsigned short swap_bytes(unsigned short num) {
return ((num & 0x00FF) << 8) | ((num >> 8));
}