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

Answer Posted / saiteja gangisetty

#include<stdio.h>
void main()
{
int a,b,temp;
printf("enter a, b values");
scanf("%d%d",a,b);
temp=a;
a=b; (or) // b=a*b/a=b;
b=temp;
printf("a=%d and b=%d",a,b);
}

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

2523


What is a list in c++ stl?

879


How is stl different from c++ standard library?

951


Explain stl.

1082


What do stl stand for?

852


What is stl in c++ with example?

836


how to making game in c++ ?

2409


Is string part of stl?

937


Who wrote stl?

883


what is template and type convertion

2208


In what scenario does the Logical file and Physical file being used?

2532


What does stl stand for in basketball?

832


What is the use of stl?

819


write a program to convert a decimal number in to its equivalent binary number?

2266


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

2695