Files
prog-MRX/works/C(system program)/Лаба 1/1.2.c
T
2026-09-17 10:52:03 +03:00

17 lines
318 B
C

/* 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));
}