下面程序的运算结果为( )。
#include
void swap(char *px,char *py);
void swap(char *px,char *py)
{
int t;
t=*px;
*px=*py;
*py=t;
}
void main( )
{
char a=3,b=5;
swap(&a,&b);
printf("%d,%d\n",a, b);
}
A、3,5
B、3,3
C、5,3
D、5,5
#include
void swap(char *px,char *py);
void swap(char *px,char *py)
{
int t;
t=*px;
*px=*py;
*py=t;
}
void main( )
{
char a=3,b=5;
swap(&a,&b);
printf("%d,%d\n",a, b);
}
A、3,5
B、3,3
C、5,3
D、5,5