Write a program to print the swapping in two no and using
three variable.

Answer Posted / anshuman jha

#include<iostream.h>

#include<conio.h>

void main()

{

int a,b,c;

clrscr();

cout<<"Enter the two different no :";

cin>>a>>b;

cout<<"After swapping :"<<a<<b;

c=a;

a=b;

b=c;

cout<<"Before swapping :"<<a<<b;

getch();

}

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

2504


What does stl stand for in basketball?

649


What are the components of stl?

628


What two types of containers does the stl provide?

573


What does stl mean in slang?

654






i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

1702


What is meant by stl in c++?

657


Is stl part of c++ standard?

647


please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html

1778


How does an stl file work?

656


What is stl stack?

665


Name the different types of stl containers.

695


How is stl different from c++ standard library?

749


To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command

1785


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A.Explain how a pointer to function can be declared in C++? B.List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header (“Include”) Files.

2315