My Lemmy Oracle
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Cipherd@lemmy.ml to Programmer Humor@programming.dev · 2 days ago

functions

lemmy.ml

message-square
119
fedilink
  • cross-posted to:
  • [email protected]
637

functions

lemmy.ml

Cipherd@lemmy.ml to Programmer Humor@programming.dev · 2 days ago
message-square
119
fedilink
  • cross-posted to:
  • [email protected]

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

  • Ziglin (it/they)@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    Or perhaps call function if you’ve got a call stack going.

    Nevermind that is C or something right? Otherwise it would be jmp function?

    • x00z@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 days 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
        ·
        1 day 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
          ·
          1 day 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: [email protected]

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.03K users / day
  • 5.47K users / week
  • 9.11K users / month
  • 19.3K users / 6 months
  • 1 local subscriber
  • 27.5K subscribers
  • 1.98K Posts
  • 71.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