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;

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

1 Expert Approved Answer
Step: 1 Unlock

There are a few syntax errors and inconsistencies in ... 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

Document Format (2 attachments)

PDF file Icon

6642f3f2725cf_972043.pdf

180 KBs PDF File

Word file Icon

6642f3f2725cf_972043.docx

120 KBs Word File

Students Have Also Explored These Related Programming Questions!