When you come back from vacation
@programmerhumor

1 point
void HelloWorld(void (* func)(const char*)) {
    func("Hello world!");
}
permalink
report
reply
1 point

(format t “Hello ~a” 'World). If I’m on vacation and come back to the land of C based languages I will have reverted to the only syntax I enjoy working in.

permalink
report
reply
1 point

@anders @nthcdr lda #0 ; Load accumulator with character code for NULL
sta $0400 ; Store it in the screen memory to clear the screen
ldx #0 ; Initialize X register to 0
loop lda message,x ; Load the next character from the message
beq done ; If the character is NULL (end of string), we are done
sta $0400,x ; Store the character in the screen memory
inx ; Increment X register
bne loop ; Branch back to the loop
done rts ; Return from subroutine
message .text “Hello World!”,0 ; Null-terminated string

permalink
report
parent
reply
4 points

im more of a c person index[array]

permalink
report
reply
11 points

I’m more

Hello print("World")
permalink
report
reply
12 points
*
void HelloWorld(string) {
  if (string == "print") {
    Serial.print("Hello World"};
  }
}

Solved it.

permalink
report
reply
1 point

@LazaroFilm well done :D

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.5K

    Monthly active users

  • 1.5K

    Posts

  • 35K

    Comments