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
What is stl stack?
What is a list in c++ stl?
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
What are the different types of stl containers?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
How does an stl file work?
What are the components of stl?
write a program to convert a decimal number in to its equivalent binary number?
How is stl different from c++ standard library?
Can we use stl in coding interviews?
Name the different types of stl containers.
Is there any error below, its a code to delete all entires from a map #include
What is stl in oop?
Explain stl.
How stl is different from the c++ standard library?