有函数swap:void swap(int *a, int *b){int *temp;temp=a, a=b, b=temp;}以下描述正确的是_____
A. int a=5, b=9; swap(a, b); 执行后a的值是9,b的值是5
B. int a=5, b=9; swap(a, b); 执行后a的值是5,b的值是9
C. int a=5, b=9; swap(&a, &b); 执行后a的值是9,b的值是5
D. int a=5, b=9; swap(&a, &b); 执行后a的值是5,b的值是9
int myStrlen(char *s){for(int n=0; *s!=0; s++) n++;return n;}以下语句描述正确的是_____
A. char str[]="hello, world";printf("%d", myStrlen(str));执行后输出13
B. char str[15]="hello, world";printf("%d", myStrlen(str));执行后输出15
C. char str[]={'h', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o', 'r', 'l', 'd'};printf("%d", myStrlen(str));执行后输出12
D. char str[15]={'h', 'e', 'l', 'l', 'o', ',', ' ', 'w', 'o', 'r', 'l', 'd', '0'};printf("%d", myStrlen(str));执行后输出13