Last active
May 26, 2020 06:05
-
-
Save jammy-dodgers/95941b85fd140629c5f392f248a72590 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
struct very_quality_string { | |
char first_letter; | |
char second_letter; | |
char third_letter; | |
char fourth_letter; | |
char fifth_letter; | |
char sixth_letter; | |
char seventh_letter; | |
char eigth_letter; | |
char ninth_letter; | |
char tenth_letter; | |
char eleventh_letter; | |
char null_terminator; | |
}; | |
int main(void) { | |
struct very_quality_string hello; | |
strcpy((char*)&hello, "Hello World"); | |
printf("%s", &hello); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment