几道小小的试题,请教各位了!!!
5. Please write the C expression equivalent to (a-b)2+(b-d)2+|sin(x)|/(ab-2)
9. What is the running result of the following code? (5%)
#include <stdio.h>
int change(int) ;
void main()
{
int x=9;
printf("%d, %d", x, change(x));
}
int change(int i)
{
i++;
return i++;
}
10. What is the running result of the following code? (5%)
#include <stdio.h>
void changeSeason(char *);
void main()
{
char *season[]={"Spring", "Summer", "Autumn", "Winter"};
char *ps=season[0];
changeSeason(ps);
printf("Now the season is %s", ps);
}
void changeSeason(char *p)
{
p++;
++p;
}