fork download
  1. #include <stdio.h>
  2.  
  3. int vetorPalavra(char str[10]) {
  4. for (int i = 0; i < 7; i++) if (str[i] == 'a' && str[i + 1] == 's' && str[i + 2] == 'a' ) return 1;
  5. return 0;
  6. }
  7. int main() {
  8. printf("%d", vetorPalavra("xdmasahkp"));
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/500511/101
Success #stdin #stdout 0s 5540KB
stdin
Standard input is empty
stdout
1