puts(string name)请向我解释一下和之间有什么区别
fputs(string name,stdout)
它们都有相同的输出,特别是当我使用fgets(string name,n,stdin)for get std size of a string 来获得安全代码时,但在那之后和 print to output ,它们之间有什么区别,尽管它们都有相同的输出?
向所有程序员问好,我无法理解一些东西
char a[]="hello"
char* b="salam"
第一个问题是为什么我们不能修改 2,例如b[0]='m',我知道 2 被存储为编译时常量但我不明白它是什么意思以及 2 的 quiddity 是什么?
第二个问题:
3.
char a[]="hello";
char* c=a;
c[0]='r';
Run Code Online (Sandbox Code Playgroud)
现在我们可以修改然后打印c,但是我们不能修改 2 !为什么?
我无法理解这些指针的概念,请向我解释