nus-cs3281 / 2020

0 stars 2 forks source link

Using unsigned in C #40

Open Tejas2805 opened 4 years ago

Tejas2805 commented 4 years ago

Summary

Using Unsigned in C can sometimes lead to bugs. Therefore, the goal is to try to understand when to use unsigned and avoid it if not necessary.

WIIFY

Develop games which your children can complete and don't feel the despair you did.

Key Points

  1. Unsigned Types Store Positive Numbers Only and Use Modular Arithmetic
  2. Unsiged Types Cause Integer Overflow
  3. Unsigned Types better than Signed in case of performance

Impact

Know: What unsigned in C is Believe: Why do you still need to use unsgined despite its flaws Do: Use unsigned only when necessary

Slides

Unsigned Type in C .pptx