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 event driven software and what is procedural driven software?
#include
what is the difference between 123 and 0123 in c?
Why do we use namespace feature?
What are the different file extensions involved when programming in C?
What is .obj file in c?
What are the 5 types of inheritance in c ++?
Explain how do you convert strings to numbers in c?
plz let me know how to become a telecom protocol tester. thank you.
Are global variables static in c?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
What does void main return?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
develop algorithms to add polynomials (i) in one variable
Write a program to print fibonacci series using recursion?