Saved Bookmarks
| 1. |
Identify and correct the error in the following code fragment. struct first { int a; float b; }S1; struct second {int a; float b; }S2; S1 = S2; |
|
Answer» The assignment S1 = S2 is not right. Because S1 and S2 are different structure variables. C++ does not permit different structure variable assignment. |
|