Looks better. I'll trust that it works. Calling exit(-1) amounts to the same thing as returning -1 from main, in terms of the value passed back to the shell (yep, the return value of main or the...
Type: Posts; User: anduril462
Looks better. I'll trust that it works. Calling exit(-1) amounts to the same thing as returning -1 from main, in terms of the value passed back to the shell (yep, the return value of main or the...
Compile with warnings turned all the way up:
$ gcc -Wall -g reverse.c -o reverse
reverse.c: In function ‘main’:
reverse.c:29: warning: left-hand operand of comma expression has no effect...