Want to ask me call back a custom function pointer, why puts in a custom function is normal, but in the main function puts mistake, thank you!!!!
CodePudding user response:
Attached source code#include
#include
Char * A (char [] s);
The main ()
{
Char s [100];
Gets (s);
Puts (A (s));
return 0;
}
Char * A (char [] s)
{
Char b [100], I, j, n, k=0;
Char * p, t;
P=s;
N=strlen (s);
for(i=0; i
If (* (p + I) & lt;='9' & amp; & * (p + I) & gt;='0')
{b=p [k] [I];
k++; }
}
B [k]=0;
for(i=0; i
b{t=b [j]; B=b [j] [I]; B [I]=t; }
P=b;
Puts (p);
Return the p;
}