Answers for "call by value in c++"

C++
1

call by value in c++

// function definition to swap the values.
void swap(int x, int y) {
   int temp;

   temp = x; /* save the value of x */
   x = y;    /* put y into x */
   y = temp; /* put x into y */
  
   return;
}
Posted by: Guest on April-22-2021

Browse Popular Code Answers by Language