1、
#include <stdio.h> int search(char x[], int c) { int i = 0, j = 0; while(1) { if(x[i] == c) { j++; } if(x[i] == '