Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 3
LambdaBeta
  • 2.8k
  • 13
  • 20

C (gcc), 44 bytes

x(o,r)char*o,*r;{*o|*r?*o^=*r,x(o+1,r+1):0;}

Try it online!

Uses recursion, note that to print strings containing the null byte one will have to manage the strings as arrays. (See the footer of the link for an example)

LambdaBeta
  • 2.8k
  • 13
  • 20

AltStyle によって変換されたページ (->オリジナル) /