Skip to content

Commit

Permalink
Ispravka slovne greške
Browse files Browse the repository at this point in the history
  • Loading branch information
anjaaivanovic committed Mar 6, 2024
1 parent f7defb0 commit 8e57682
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vezbe/03.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ Generisanje maske `m`.
| a | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 |
|---|---|---|---|---|---|---|---|---|
| **~m** | 1 | 1 | 1 | 1 | **0** | 1 | 1 | 1 |
| **a = a \& ~m** | 1 | 1 | 0 | 1 | **0** | 1 | 0 | 1 |
| **a = a & ~m** | 1 | 1 | 0 | 1 | **0** | 1 | 0 | 1 |

Upotrebom invertovane maske (i operatora bitovske konjunkcije), postižemo da svi uključeni bitovi ostanu uključeni, dok će prvobitno uključeni bit na poziciji p, na kraju biti isključen.

Expand Down Expand Up @@ -373,6 +373,7 @@ int main()
```

Rezultat sabiranja int i double vrednosti biće double, pa će ispis biti `8`.

***Napomena:** `%lu` se koristi za long integer vrednosti.*

Sizeof je koristan za preračunavanje `broja elemenata niza`:
Expand Down

0 comments on commit 8e57682

Please sign in to comment.