C语言 返回指针的函数

 

#include <stdio.h>

char * test() {
    return "itcast";
}

int main(int argc, const char * argv[])
{
    printf("%s", test());
    return 0;
}

 

posted on 2017-05-24 15:57  守望星空  阅读(171)  评论(0编辑  收藏  举报

导航