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 does printf does?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
Can we initialize extern variable in c?
What is c variable?
What is c token?
Write a code to generate a series where the next element is the sum of last k terms.
What are the types of pointers in c?
How can you tell whether two strings are the same?
What is new line escape sequence?
what is the height of tree if leaf node is at level 3. please explain
Can the “if” function be used in comparing strings?
Is there a way to compare two structure variables?
What is atoi and atof in c?
Where are local variables stored in c?
In C, What is the #line used for?