Answer Posted / eranna kybarshi
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
clrscr();
printf("Enter 'x' value :");
scanf("%d",&x);
printf("\nEnter 'y' value :");
scanf("%d",&y);
x=x+y;
y=x-y;
x=x-y;
printf("\nAfter swaping x= %d,y= %d ",x,y);
getch();
}
| Is This Answer Correct ? | 20 Yes | 0 No |
Post New Answer View All Answers
How can you determine the maximum value that a numeric variable can hold?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What is the purpose of void in c?
What is the difference between text and binary modes?
Is null a keyword in c?
Can we declare variable anywhere in c?
Why doesnt that code work?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
Explain the process of converting a Tree into a Binary Tree.
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Explain a file operation in C with an example.
What is the size of enum in c?
What will be the outcome of the following conditional statement if the value of variable s is 10?
What are the preprocessor categories?
What is pivot in c?