Files
Cody Boone Ferguson ac949a735d Fix 1988/litmaath/README.md + add alt code
There was no 'To build' or 'To run' section.

The alt code is that which the judges suggested to try and understand
the code a bit more. As it was fun output and it seems instructive I
decided to add it as an alt version.

Updated .gitignore.
2023-05-27 04:30:19 -07:00

17 lines
546 B
C

#include <stdio.h>
main(argc, argv)
int argc;
char **argv;
{
while (*argv != argv[1] && (*argv = argv[1]) && (argc = 0) || (*++argv
&& (**argv && ((++argc)[*argv] && (**argv <= argc[*argv] ||
(**argv += argc[*argv] -= **argv = argc[*argv] - **argv)) &&
--argv || putchar(**argv) && ++*argv--) || putchar(10))))
fprintf(stderr,
"argv=%lo *argv=%lo **argv=%c argv[1]=%lo *argv[1]=%c argc=%d\n",
(long) argv, (long) *argv, *argv && **argv ? **argv : '@',
(long) argv[1], argv[1] && *argv[1] ? *argv[1] : '@', argc);
;
}