Home > Back-end >  programming
programming

Time:10-14

Write function char * STR (char * s, char x), function function: in a given string s find a specific character x, if x, return the x in s address, the first time in the main function of the x output and the elements of x before reverse count
What do you think this program
#include
Char * STR (char * s, charx)
{
Id=0;
While (x! [c]=s & amp; & S [c]!='\ 0')
C + +;
Return& S [c];
}
Intmain ()
{
Chars [40], * p, x;
Gets (s);
X=getchar ();
P=STR (s, x);
If (* p)
{
Printf (" % c ", * p).
While (-s) p
{
P -;
Printf (" % c ", * p).
}
}
The else
Printf (" char % cnotfound. The ", x);
Return0;
}
What is the meaning of this