lorddimwit,
@lorddimwit@mastodon.social avatar

Every time you write ‘0’ in the #C programming language, you’re writing an octal literal.

You’ve probably written more octal literals in C than literals in any other base.

Do what you will with this information.

proactiveservices,
@proactiveservices@fosstodon.org avatar

@lorddimwit I this post.

resuna,
@resuna@ohai.social avatar

@lorddimwit I am so glad that Tcl 9.0 is getting rid of 0123 for octal and requiring 0o123.

ChateauErin,
@ChateauErin@mastodon.social avatar

@lorddimwit huh. is that also true of 1 through 7? or is 0 a special case?

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@ChateauErin @lorddimwit

It’s having a leading zero that does it. An amazingly horrible convention.

ucblockhead,
@ucblockhead@hulvr.com avatar

@lorddimwit What is "#C"? Is that like C# from Australia?

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines