No products in the cart.

Write c++ program that read two …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Write c++ program that read two values a and b, exchange their contents and print the output
  • 2 answers

Prateek Goyal 4 years, 10 months ago

#include<iostream.h> #include<conio.h> void main() { int a,b,c; cout<<"enter value.of a"<<"|n"<<"enter value of b"; cin>>a>>b; a=c; b=a; c=b; cout<<a<<"\n"<<b; getch(); }

Saurabh Mishra 4 years, 11 months ago

This is the mechanism of call by reference given in pointer chapter with example
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 2 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App