May 2021 1 41 Report
Programma C, controllo di parità.?

Fare un programma in C sul controllo di parità.

Linguaggioi C no C++.

- Codice ascii.

-Codifica in bit.

Aggiornamento:

A vuole trasmettere: 1001

A calcola il bit di parità: 1^0^0^1 = 0

A aggiunge il bit di parità e spedisce: 10010

B riceve: 10010

B calcola la parità totale: 1^0^0^1^0 = 0

B può dire che la trasmissione è avvenuta correttamente.

A vuole trasmettere: 1001

A calcola il bit di parità: ~(1^0^0^1) = 1

A aggiunge il bit di parità e spedisce: 10011

B riceve: 10011

B calcola la parità totale: 1^0^0^1^1 = 1

B può dire che la trasmissione è avvenuta correttamente.

Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Answers & Comments


Helpful Social

Copyright © 2024 QUIZLIB.COM - All rights reserved.