Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Program Discussion :: Basics

Home > Programs > Basics

6 / 248

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: