私は4月から大学でc言語学習している初学者で、今、適当な英文にある操作を加える課題に取り組んでいます。
そしてこの課題を取り組む上で、改行を含んだ文字列の宣言をしたいのですが、そもそも出来ないのではないかと思い質問させてもらいました。
以下の様なコード(文字列は簡略化のため一文にしています。)を書いたのですが、コンパイルするとエラーが出ます。
#include<stdio.h>
#include <string.h>
main(){
char* text={"But most reincarnation literature
is poorly informed, highly speculative, superficial, and inconclusive."};
}
#include<stdio.h>
#include <string.h>
main(){
char* text={"But most reincarnation literature is poorly informed, highly speculative, superficial, and inconclusive."};
}
詳しい方、ご教授ください。