I am getting a Seg Fault; can anyone explain the problem??
I believe this simple program is to find the # of instances a letter s occurs in the string literal "system" (which is obviously 2 times).
I am reviewing some programs for my final and I am obviously missing something quite simple but darned if I see it right now.
int Example2(char ch, char *str)
int result, i;
if (str == '\0')
result = 0;
(ch == str)
result = 1+Example2(ch,&str[i]);
result = Example2(ch,&str[i]);
char a = 's';
char message = "system";
printf("returned from Example2: %d\n",