Home > Back-end >  C language is how to determine reference or collect the address?
C language is how to determine reference or collect the address?

Time:03-16

Just don't know what time is the reference, when is the address, please speak a little bit in detail, thank you.

CodePudding user response:

Reference is an adjective, and pick up address is a verb, and object,

CodePudding user response:

reference 1st floor forever74 response:
reference is an adjective, and pick up address is a verb, and object,

Ah, I'm not ask English is & amp; What this symbol is address, when it is reference (alias) is

CodePudding user response:

Judge & amp; + a variable is a reference or take address
When declaring variables using & amp; Here & amp; Refers to
Example:
Int b=0;
Int & amp; A=b;
When declared variables in front & amp; Here & amp; Take the address is
Example:
Int b=0;
Int * a=& amp; b;

CodePudding user response:

The
reference synaptic reply: 3/f
judgment & amp; + a variable is a reference or take address
When declaring variables using & amp; Here & amp; Refers to
Example:
Int b=0;
Int & amp; A=b;
When declared variables in front & amp; Here & amp; Take the address is
Example:
Int b=0;
Int * a=& amp; b;

For example, I a function void Max (int & amp; A, int & amp; b)

CodePudding user response:

The
reference synaptic reply: 3/f
judgment & amp; + a variable is a reference or take address
When declaring variables using & amp; Here & amp; Refers to
Example:
Int b=0;
Int & amp; A=b;
When declared variables in front & amp; Here & amp; Take the address is
Example:
Int b=0;
Int * a=& amp; b;

So a reference or collect the address?

CodePudding user response:

The
reference synaptic reply: 3/f
judgment & amp; + a variable is a reference or take address
When declaring variables using & amp; Here & amp; Refers to
Example:
Int b=0;
Int & amp; A=b;
When declared variables in front & amp; Here & amp; Take the address is
Example:
Int b=0;
Int * a=& amp; b;

Should be quoted for?

CodePudding user response:

A declaration except identifier inside can be seen as an adjective, identifier itself is a noun,
Similarly, assignment or function call, is general verbs,

CodePudding user response:

Well is a reference

CodePudding user response:

To use the style of four teachers
Poor without analysis of parts of speech in gate, through a variety of figures of speech code is no soul,
In the distance there are waiting for you,

CodePudding user response:

synaptic reference 8 floor response:
well is reference

If the outside world define a [],
That this function void Max (int [] a) address?
Also is equivalent to void Max (int * a)?

CodePudding user response:

synaptic reference 8 floor response:
well is reference

Whether is also equivalent to void Max (int & amp; A)?
This form is the address is, rather than a reference

CodePudding user response:

Also is equivalent to void Max (int & amp; A)?
Is behind say 3 cases all take address, rather than a reference?
  • Related