1182
you are viewing a single comment's thread
view the rest of the comments
[-] s_s@lemmy.one 17 points 4 months ago

Looks like 0100 rocks to me

[-] PanArab@lemm.ee 10 points 4 months ago* (last edited 3 months ago)

That's not 64 rocks

Edit: In C any number that starts with 0 is implicitly interpreted as an octal.

int i = 0100; // this is octal 100 i.e. 64

I can tell from the upovotes vs. downvotes that I'm too old

[-] Dusktracer@lemmy.world 3 points 4 months ago

00 = 0 01 = 1 10 = 2 11 = 3 100 = 4 .....

[-] PanArab@lemm.ee 3 points 3 months ago* (last edited 3 months ago)

In C any number that starts with 0 is implicitly interpreted as an octal

int i = 0100; // this is octal 100 i.e. 64
this post was submitted on 24 May 2024
1182 points (97.6% liked)

Science Memes

10377 readers
3345 users here now

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don't throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.


Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

founded 2 years ago
MODERATORS