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
can we change the default calling convention in c if yes than how.........?
What is the significance of c program algorithms?
Which type of language is c?
How can you find out how much memory is available?
Write a program to know whether the input number is an armstrong number.
Differentiate between the expression “++a” and “a++”?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
write a c program for swapping two strings using pointer
Explain how do you generate random numbers in c?
How does #define work?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is pointer to pointer in c with example?
What is preprocessor with example?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.