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

Looks like 0100 rocks to me

[-] PanArab@lemm.ee 10 points 5 months ago* (last edited 5 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 5 months ago

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

[-] PanArab@lemm.ee 3 points 5 months ago* (last edited 5 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
1186 points (97.6% liked)

Science Memes

11021 readers
4769 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.

This is a science community. We use the Dawkins definition of meme.



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