-3
I took a C book to study, but it’s kind of outdated, and I came across the following code:
#include<stdio.h>
is_in(char *s, char c);
void main(void){
is_in("olac", "ola");
}
is_in(char *s, char c){
while(*s)
if(*s == c) return 1;
else s++;
return 0;
}
http://pastebin.com/raw/7dUSC0cj
someone can help me?
What error does it bring? Uses the code block that it corrects simtaxe error
– Matheus de Mello Vieira
What is the problem or doubt about the code snippet?
– Giuliana Bezerra