700+ câu trắc nghiệm Ngôn ngữ lập trình C có đáp án - Phần 14

For the code below which lines should be reported as errors by a compiler? int main(int argc, char** argv) { const char* foo = "wow"; // line 1 foo = "top"; // line 2 foo[0] = 1; // line 3 r

5/25

For the code below which lines should be reported as errors by a compiler? int main(int argc, char** argv) { const char* foo = "wow"; // line 1 foo = "top"; // line 2 foo[0] = 1; // line 3 return 0; }

1

2

3

None of the lines

Giải thích

Chọn đáp án C