hi, i am having trouble understanding this problem.
could anyone help me out?
Write a C language program that compiles successfully as a borland project that reads char data from a streaming file and computes the odd parity of the 16 bit unsigned number and writes the 8 bit (7bit+parity bit) to an output file. EOF is NULL. Input file is Indata.dat. Output file is outdata.dat.
"Odd parity" forces the number of "1s" to be odd including the parity bit. Some examples are:
x1001110 -> 11001110
x0011001 -> 00011001