write a program in C to swap two variables
Answer Posted / anju
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,temp;
scanf("%d%d",&a,&b);
printf("before swapping value of a=%d and b=%d",a,b);
temp=x;
x=y;
y=temp;
printf("after swapping value of a=%d and b=%d",a,b);
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a sequential access file?
Mention four important string handling functions in c languages .
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
Is there sort function in c?
write a program to rearrange the array such way that all even elements should come first and next come odd
Combinations of fibanocci prime series
What are predefined functions in c?
What is a pointer variable in c language?
What is data type long in c?
Explain the binary height balanced tree?
Explain how do you print an address?
What are the uses of null pointers?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is p in text message?
explain what are actual arguments?