Take FREE!! Online AMCAT Mock Test to Crack Wipro NLTH, Capgemini, etc.
Get Off-Campus Placement Jobs Info !!!
Practice Given Here Wipro NLTH Practice Q&A

Program Discussion :: Basics

Home > Programs > Basics

2 / 259

Write a program, swapping function by passing value using call by reference?

Answer:

#include 
using namespace std;
/* function declaration */
void swap(int &x, int &y);
int main () {
   /* local variable declaration: */
   int a = 100;
   int b = 200;
   cout 

Asked In :: Wipro Syntel Inc. Sapient

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: