Answer Posted / kumar
#include<stdio.h>
#include<conio.h>
void main()
{
int x,y ;
int z = 0;
clrscr();
printf("Enter 'x' value :");
scanf("%d",&x);
printf("\nEnter 'y' value :");
scanf("%d",&y);
z=x;
x=y;
y=z;
printf("\nAfter swaping x= %d,y= %d ",x,y);
getch();
}
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is use of null pointer in c?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Explain what is the difference between a free-standing and a hosted environment?
How to declare a variable?
What is the description for syntax errors?
State two uses of pointers in C?
Tell us the use of fflush() function in c language?
What is the use of getchar functions?
What is masking?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Was 2000 a leap year?
What is 02d in c?
Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?