Question: What is wrong with the following code? int main() { int &ref; int x = 2, y, z = 18; ref = x; ref

What is wrong with the following code? int main() { int &ref; int x = 2, y, z = 18; ref = x; ref *= -2; cout < < ref; return 0; }
Step by Step Solution
There are 3 Steps involved in it
There are a few syntax errors and inconsistencies in ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
6642f3f2725cf_972043.pdf
180 KBs PDF File
6642f3f2725cf_972043.docx
120 KBs Word File
