#include <stdbool.h> bool odd_even(int n) { int r = 0, p[1] = {0}; goto owo; uwu: *&*p = (&r)[0]; goto miau; owo: *(int*)((void*)&r) = n%2; goto uwu; miau: return !(*p&1) ? true : false; }
- #include <stdbool.h>
- bool odd_even(int n)
- {
goto start;- int r = 0, p[1] = {0};
- goto owo;
- uwu:
goto end;start:- *&*p = (&r)[0];
- goto miau;
- owo:
- *(int*)((void*)&r) = n%2;
- goto uwu;
end:return !(n&1);goto start;- miau:
- return !(*p&1) ? true : false;
- }
#include <stdlib.h> char *fanis(char* r, int k) { char *w = malloc(strlen(r)+1); if (!w) return w; char *p = w; while (*r) *p++ = k + *r++; return w; }
- #include <stdlib.h>
char *fanis(char* r, int k) {char* w = malloc(strlen(r) + 1);if (w != NULL) {char* p = w;while (*r) { *p++ = k + *r++;}*p = '\0'; w = realloc(w, strlen(w) + 1);}return w;}- char *fanis(char* r, int k) {
- char *w = malloc(strlen(r)+1);
- if (!w)
- return w;
- char *p = w;
- while (*r)
- *p++ = k + *r++;
- return w;
- }