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 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
Answer In C or C arrays are nonmodifiable lvalues meaning they cannot b... View full answer
Get step-by-step solutions from verified subject matter experts
