Horje
REFERENCE C++ Code Example
reference function in c++
// function definition to swap the values.
void swap(int &x, int &y) {
   int temp;
   temp = x; /* save the value at address x */
   x = y;    /* put y into x */
   y = temp; /* put x into y */
  
   return;
}
REFERENCE C++
int& r = i;
reference variablesr in c++
Value of i : 5
Value of i reference : 5
Value of d : 11.7
Value of d reference : 11.7




Cpp

Related
c++ convert int to double Code Example c++ convert int to double Code Example
qt make widget ignore mouse events Code Example qt make widget ignore mouse events Code Example
initialise 2d vector in c++ Code Example initialise 2d vector in c++ Code Example
initialising 2d vector Code Example initialising 2d vector Code Example
How to create an ArrayList Code Example How to create an ArrayList Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9