Skip to content

Instantly share code, notes, and snippets.

@donno2048
Last active August 15, 2021 20:11
Show Gist options
  • Save donno2048/1b237c2f4169472169d9c04d848cf524 to your computer and use it in GitHub Desktop.
Save donno2048/1b237c2f4169472169d9c04d848cf524 to your computer and use it in GitHub Desktop.
#include <stdio.h>
int main() {
    char a[6], *b = "test\n\0";
    char *temp=a;while(*temp++=*b++);
    printf("%s", a);
    return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment