Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- const char * foo = "Have\n";
- const char * bar = "A\n";
- const char * qux = "Nice\n";
- const char * zot = "Day!\n";
- char *xyzzy[] = calloc(5,sizeof(void*));
- notaconst__xyzzy () {
- xyzzy[0] = foo;
- xyzzy[1] = bar;
- xyzzy[2] = qux;
- xyzzy[3] = zot;
- }
- notaconst__main () {
- notaconst__xyzzy();
- }
- main () {
- notaconst__main();
- for (int n = 0;xyzzy[n] != NULL;n++) {
- printf("%s",xyzzy[n]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement