[主观题]char *p="hello";printf("%s",p);p++;printf("%s",p);printf("%c",*p);
[主观题]char str[ ]= "Hello";char *p=str;int n=10;sizeof(str)=( )sizeof(p)=( )sizeof(n)=( )void func(char str[100]){ }sizeof(str)=( )
[主观题]char str[ ]= "Hello";char *p=str;int n=10;sizeof(str)=( )sizeof(p)=( )sizeof(n)=( )void func(char str[100]){ }sizeof(str)=( )
[主观题]char *GetMemory(void){ char p[] = "hello world";returnp; }void Test(void){char *str = NULL;str = GetMemory(); printf(str);}请问运行 Test 函数会有什么样的结果?
[主观题]char *GetMemory(void){ char p[] = "hello world";returnp; }void Test(void){char *str = NULL;str = GetMemory(); printf(str);}请问运行 Test 函数会有什么样的结果?
[单选题]设有定义:char s[12]={"hello"},则cout<<strlen(s)的输出是 ______。A.5B.6C.11D.12
[主观题]C.++语句const char * const p="hello" , ,所定义的指针p和它所指的内容都不能被 (10) 。
[单选题]设有如下的程序段: char str[]="Hello"; char *ptr; ptr=str; 执行完上面的程序段后,*(ptr+5)的值为( )。A.'o'B.'/0'C.不确定的值D.'o'的地址
[单选题]设A$="Hello",下列语句正确的是( )。A.Labe11.Hight=Labe11.Hight+A$B.Labe11.Caption=Labe11.Caption+A$C.Labe11.Enabled=Laabe11.Enabled+A$D.Labe11.Visible=Labe11.Visible+AS
[主观题]定义字符指针char *str="hello",已知sizeof(str)=4,则strlen(str)=______。