answersLogoWhite

0

The ampersand '&' has many uses in the C++ language:

The single ampersand can be used to reference the pointer address of a pointer:

int* pointer;

int* anpointer;

anpointer = &pointer;

This example, although perhaps not valid, shows that the anpointer reference is now the same as the reference to the pointer memory address.

The single ampersand can also be used to reference an object in a function:

void function( int param1, int param2, int &reference );

If this function were to be called, and the reference object altered within the function, the actualy object that was passed into the function would be altered.

The double ampersand '&&' specifies that the left AND the right concepts must both be true before the whole statement is true. For example:

if( conceptA true )

{

conceptC = true;

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What has the author Frank C Eckmair written?

Frank C. Eckmair has written: 'My nice little ampersand in American wood type, 1828-1900' -- subject(s): Ampersand, History, Wood types


What is the motto of Ampersand Communications?

Ampersand Communications's motto is 'with Ampersand you always get more'.


Ampersand in a sentence?

Ampersand is use for Title, and Fragments .


How do you write ampersand?

Ampersand is the known name for the '&' sign.


What does the one squiggly line mean ampersand?

this is and ampersand......&


What is a sentence for Ampersand?

The ampersand is number seven on a standard keyboard.


What is an ampersand key?

An ampersand key is this, & it is the 'and' short cut symbol.


When was Ampersand Communications created?

Ampersand Communications was created in 2001.


What is a candy named after punctuation marks?

The candy named after punctuation marks is called "Ampersand." It is often shaped like the ampersand symbol (&) and is a playful nod to the ampersand's role in connecting words and ideas. This unique candy is typically enjoyed for its whimsical design and sweet flavor, appealing to both candy lovers and language enthusiasts alike.


How do you use ampersand in a sentence?

The ampersand is number seven on a standard keyboard.


How do you spell ampersand in Swedish?

Ampersand translates to et-tecken in Swedish.


What is the 27th letter after w?

There are only 26 letters in the English language alphabet:abcdefghijklmnopqrstuvwxyz'w' is the 23rd letter, followed by the 24th, 'x'.Other languages have different numbers of letters in their alphabets.