Brdsnest Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Cipherd@lemmy.ml to Programmer Humor@programming.dev · 22 hours ago

functions

lemmy.ml

message-square
83
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
487

functions

lemmy.ml

Cipherd@lemmy.ml to Programmer Humor@programming.dev · 22 hours ago
message-square
83
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml

cross-posted from: https://lemmy.ml/post/39334581

  • x00z@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    15 hours ago

    Yeah that’s C.

    I added the goto to put emphasis on the function being a label instead of a real function.

    https://www.geeksforgeeks.org/c/goto-statement-in-c/

    • Ziglin (it/they)@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 hours ago

      I’ve done that in C before. I was just confused because the labels need to be in scope of a function as far as I am aware. In assembly you don’t really have that.

      • x00z@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        5 hours ago

        We’ll just put everything in int main(). No worries

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2.43K users / day
  • 5.25K users / week
  • 9.06K users / month
  • 19.3K users / 6 months
  • 1 local subscriber
  • 27.4K subscribers
  • 1.61K Posts
  • 45.4K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org