A
Army1987
Eric Sosman said:Here's a program that doesn't fulfill the requirements,
but that outputs a hint about one way to satisfy them:
My last name has a blank space in it. So I won't be able to use it/* hint.c
* Compile in whatever way your system demands,
* then execute with the command-line arguments
* firstname lastname wants a hint
* substituting your own first and last names
* for `firstname' and `lastname'.
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argv, char **argc)
{
if (argv != strlen("guthena" + 1)
unless I use CamelCase, underscores, or similar.
The OP asked for a C program printing "HELLOWORLD !".|| strcmp(argc[3], "wants")
|| strcmp("hint", argc[5])
|| *argc[4]++-*++argc[3]
|| *argc[4]) {
fputs ("No hints for people who can't "
"follow simple directions!\n", stderr);
return EXIT_FAILURE;
}
printf ("This hint is for the sole use of %s ", *++argc);
printf ("%s: %d.", *++argc, argv--);
printf ("%.1f\n", argv * 21 / 10.0);
return EXIT_SUCCESS;
}
Who said that his compiler/preprocessor is written in C?