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
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.
What is a list in c++ stl?
How is stl different from c++ standard library?
Explain stl.
What do stl stand for?
What is stl in c++ with example?
how to making game in c++ ?
Is string part of stl?
Who wrote stl?
what is template and type convertion
In what scenario does the Logical file and Physical file being used?
What does stl stand for in basketball?
What is the use of stl?
write a program to convert a decimal number in to its equivalent binary number?
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999