QUOTE(ShangKiShaq @ 1 Sep, 2007 - 07:52 PM)

I cannot figure out where I am going wrong with this code. I get two error msgs but not sure where to begin to fix them. Please help.
(11) : error C2449: found '{' at file scope (missing function header?)
(13) : error C2059: syntax error : '}'
# include <stdio.h>
void Mystery(char *Str)
{
if (*Str != '\0');
{
Mystery(Str + 1);
printf("%s\n",Str);
}
}
Mystery("abcd");
I have tried several types of main i.e.
int main()
void main ()
void main (void)
main()
None seem to work. Is there others that I am missing? Thank you for the info on the semicolon. It originally was not there but I had an error msg that said the ; was missing. When I inserted it the error msg went away. Any help on what else I am missing or doing wrong.
Thnak you guys for your generous help.