Q:

We can define multiple references in a single definition. Each identifier that is a reference must be preceded by the & symbol

0

We can define multiple references in a single definition. Each identifier that is a reference must be preceded by the & symbol.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

int i = 1024, i2 = 2048; // i and i2 are both ints
int &r = i, r2 = i2; // r is a reference bound to i; r2 is an int
int i3 = 1024, &ri = i3; // i3 is an int; ri is a reference bound to i3
int &r3 = i3, &r4 = i2; // both r3 and r4 are reference

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now