[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Basics

Home > Programs > Basics

71 / 279

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: