Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

Program Discussion :: Basics

Home > Programs > Basics

2 / 265

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: