#include <stdio.h>
void filtro(int tamanho, int vet[]) {
for (int i = 0; i < tamanho; i++) if (vet[i] <= -4 || vet[i] >= 4) return;
printf("Está executando um método\n"); }
int main(void) {
int vet[] = { 1, 2, 3, 4 };
filtro(3, vet); //não conssiderará o último elemento que não encaixa no filtro
printf("Agora não vai passar pelo filtro"); filtro(4, vet);
}
//https://pt.stackoverflow.com/q/257565/101
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGZpbHRybyhpbnQgdGFtYW5obywgaW50IHZldFtdKSB7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IHRhbWFuaG87IGkrKykgaWYgKHZldFtpXSA8PSAtNCB8fCB2ZXRbaV0gPj0gNCkgcmV0dXJuOwogICAgcHJpbnRmKCJFc3TDoSBleGVjdXRhbmRvIHVtIG3DqXRvZG9cbiIpOwp9CmludCBtYWluKHZvaWQpIHsKICAgIGludCB2ZXRbXSA9IHsgMSwgMiwgMywgNCB9OwogICAgZmlsdHJvKDMsIHZldCk7IC8vbsOjbyBjb25zc2lkZXJhcsOhIG8gw7psdGltbyBlbGVtZW50byBxdWUgbsOjbyBlbmNhaXhhIG5vIGZpbHRybwogICAgcHJpbnRmKCJBZ29yYSBuw6NvIHZhaSBwYXNzYXIgcGVsbyBmaWx0cm8iKTsKICAgIGZpbHRybyg0LCB2ZXQpOwp9CgovL2h0dHBzOi8vcHQuc3RhY2tvdmVyZmxvdy5jb20vcS8yNTc1NjUvMTAx