#include#include #include #include #include void reverse(char s[]){ int c,i,j; for(i = 0,j = strlen(s) - 1;i < j;i++,j--) c = s[i],s[i] = s[j],s[j] = c;}void itoa(int n,char s[]){ int i,sign; sign = n,i = 0; do { s[i++] = abs(n % 10) + '0'; }while((n /= 10) != 0); if(sign < 0) s[i++] = '-'; s[i] = '\0'; reverse(s);}int main(){ int n,i; char s[50]; n = -2147483648; itoa(n,s); for(i = 0;i < strlen(s);i++) printf("%c ",s[i]); return 0;}