Question: In the program below, of the two lines of code with a comment, which one is not allowed (i.e., would result in an error)?

In the program below, of the two lines of code with a  

In the program below, of the two lines of code with a comment, which one is not allowed (i.e., would result in an error)? int main() { int *ptr; int a[2], b[2]; ptr = a; // line 4 b = a; // line 5 }

Step by Step Solution

3.39 Rating (165 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Answer In C or C arrays are nonmodifiable lvalues meaning they cannot b... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!