需要帮助编译C源代码

时间:2015-10-08 02:44:21

标签: c compiler-errors

#include <stdio.h>

int main(void)
{
    char *s = "Jordan";
    printf("hello, %s\n, s");
}

有没有人知道我可以让这个原生C源代码工作的方式?我无法编译并运行它。

1 个答案:

答案 0 :(得分:1)

你的第二句话在错误的地方。尝试:

printf("hello, %s\n", s);