如何try()修改函数(以及它的调用)以从下面的程序中获得11的输出?
#include <stdio.h>
/* declare try() here */
int main(void)
{
int x = 10;
try(); /* Call can change */
printf("%d\n", x);
return 0;
}
void try() /* Signature can change */
{
/* how to change x here?? */
}
Run Code Online (Sandbox Code Playgroud) c ×1