#include <stdio.h>
#include <string.h>
int main(void) {
char b[8], a[8];
if (a < b)
printf ("%s vem antes de %s no dicionário", a
, b
); else
printf ("%s vem depois de %s no dicionário", a
, b
);
/*
char *b, *a;
a = "abacate";
b = "banana";
if (a < b)
printf ("%s vem antes de %s no dicionário", a, b);
else
printf ("%s vem depois de %s no dicionário", a, b);
char *a, *b;
a = "abacate";
b = "amora";
if (*a < *b)
printf ("%s vem antes de %s no dicionário", a, b);
else
printf ("%s vem depois de %s no dicionário", a, b); return 0;
*/
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKHZvaWQpIHsKY2hhciBiWzhdLCBhWzhdOwpzdHJjcHkgKGEsICJiYW5hbmEiKTsKc3RyY3B5IChiLCAiYWJhY2F0ZSIpOwppZiAoYSA8IGIpCiAgIHByaW50ZiAoIiVzIHZlbSBhbnRlcyBkZSAlcyBubyBkaWNpb27DoXJpbyIsIGEsIGIpOwplbHNlCiAgIHByaW50ZiAoIiVzIHZlbSBkZXBvaXMgZGUgJXMgbm8gZGljaW9uw6FyaW8iLCBhLCBiKTsKCi8qCgpjaGFyICpiLCAqYTsKYSA9ICJhYmFjYXRlIjsKYiA9ICJiYW5hbmEiOwppZiAoYSA8IGIpCiAgIHByaW50ZiAoIiVzIHZlbSBhbnRlcyBkZSAlcyBubyBkaWNpb27DoXJpbyIsIGEsIGIpOwplbHNlCiAgIHByaW50ZiAoIiVzIHZlbSBkZXBvaXMgZGUgJXMgbm8gZGljaW9uw6FyaW8iLCBhLCBiKTsKCgoKY2hhciAqYSwgKmI7CmEgPSAiYWJhY2F0ZSI7CmIgPSAiYW1vcmEiOwppZiAoKmEgPCAqYikKICAgcHJpbnRmICgiJXMgdmVtIGFudGVzIGRlICVzIG5vIGRpY2lvbsOhcmlvIiwgYSwgYik7CmVsc2UKICAgcHJpbnRmICgiJXMgdmVtIGRlcG9pcyBkZSAlcyBubyBkaWNpb27DoXJpbyIsIGEsIGIpOwlyZXR1cm4gMDsKICAgKi8KICAgCiAgIHJldHVybiAwOwp9Cg==