char* s="AAA"; printf("%s",s); s[0]='B'; printf("%s",s); 有什么错?
char* s="AAA";
printf("%s",s);
s[0]='B';
printf("%s",s);
有什么错?
char* s="AAA";
printf("%s",s);
s[0]='B';
printf("%s",s);
有什么错?
若有char s[3][3]=={"AAA","BBB","CCC"};说明语句,则与它等价的语句是()。
A.char**s={"AAA","BBB","CCC"};
B.char*s[3]={"AAA","BBB","CCC"};
C.char s[][5]={"AAA","BBB","CCC"};
D.char s[][3]={"AAA","BBB","CCC"};
有以下函数 int aaa(char*s) {char*t=s; while(*t+t); t--: return(t-s); } 以下关于aaa函数的功能叙述正确的是()。
A.求字符串S的长度
B.比较两个串的大小
C.将串S复制到串t
D.求字符串S所占字节数
有以下函数: mt aaa(char*s) {char *t=s; while(*t++); t--; return(t-s); } 以下关于aaa函数的功能的叙述正确的是()。
A.求字符串s的长度
B.比较两个串的大小
C.将串s复制到串t
D.求字符串s所占字节数
A.求字符串s的长度
B.比较两个串的大小
C.将串s复制到串t
D.求字符串s所占字节数
A.求字符串s的长度
B.比较两个串的大小
C.将串s复制到串t
D.求字符串s所占字节数
class Person: def __init__(self,n="xxx"): self.name=n class Student(Person): def __init__(self,n="aaa",s="male"): Person.__init__(self) self.sex=s def show(self): print(self.name,self.sex) s=Student("yyy","female") s.show() 结果:
A、aaa male
B、aaa female
C、yyy female
D、xxx female
A.aaa bbb
B.aaa bbb
C.aaa\0bbb\0
D.aaabbb
A、mmm aaa nnn
B、man
C、man man man
D、表达式有错
A.H e
B.Hello,World ello,World
C.Hello,World Hello,World
D.ello,World ell,World
A、tring Pointer, ring Pointer
B、ring Pointer, ing Pointer
C、tring Pointer, ing Pointer
D、ring Pointer, ring Pointer
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!