哪一个有语法错误?
A.int a,b,*pa=&a,*pb=&b; if(pa>pb) puts(“Yes”);
B. int a,b,*pa=&a,*pb=&b; if(*pa>*pb) puts(“Yes”);
C. int a,b,*pa=&a,*pb=&b; if(pa-pb) puts(“Yes”);
D. int a,*pa=&a; char b,*pb=&b; if(pa>pb) puts(“Yes”);
哪一个有语法错误?
A.int a,b,*pa=&a,*pb=&b; if(pa>pb) puts(“Yes”);
B. int a,b,*pa=&a,*pb=&b; if(*pa>*pb) puts(“Yes”);
C. int a,b,*pa=&a,*pb=&b; if(pa-pb) puts(“Yes”);
D. int a,*pa=&a; char b,*pb=&b; if(pa>pb) puts(“Yes”);
D错误,pa是int *类型,pb是char*类型,类型不一样,不能进行比较