#include <stdio.h>
#include <string.h>
int main(void) {
char lugar[20]; //cria o array de caracteres para armazenar o texto
printf("Digite o nome de um lugar: "); scanf("%20s", lugar
); //não precisa da referência porque o array já é uma, precisa %s if (strcmp(lugar
, "Escola") == 0) { //use a função para comparar todos os caracteres }
}
//http://pt.stackoverflow.com/q/193124/101
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKHZvaWQpIHsKICAgIGNoYXIgbHVnYXJbMjBdOyAvL2NyaWEgbyBhcnJheSBkZSBjYXJhY3RlcmVzIHBhcmEgYXJtYXplbmFyIG8gdGV4dG8KICAgIHByaW50ZigiRGlnaXRlIG8gbm9tZSBkZSB1bSBsdWdhcjogIik7CiAgICBzY2FuZigiJTIwcyIsIGx1Z2FyKTsgLy9uw6NvIHByZWNpc2EgZGEgcmVmZXLDqm5jaWEgcG9ycXVlIG8gYXJyYXkgasOhIMOpIHVtYSwgcHJlY2lzYSAlcwogICAgaWYgKHN0cmNtcChsdWdhciwgIkVzY29sYSIpID09IDApIHsgLy91c2UgYSBmdW7Dp8OjbyBwYXJhIGNvbXBhcmFyIHRvZG9zIG9zIGNhcmFjdGVyZXMKICAgICAgICBwcmludGYoIlxuRXN0dWRhciIpOwogICAgfQp9CgovL2h0dHA6Ly9wdC5zdGFja292ZXJmbG93LmNvbS9xLzE5MzEyNC8xMDE=