阅读背景:

C - 返回没有malloc的char指针

来源:互联网 

Consider the following code:

请考虑以下代码:

char* pointerTesting(void) {

    char* test = "hello";
    return test;
}

int main() {

   char* string = pointerTesting();
   printf("string: %s\n", string);
}
char*



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: