write a program to swap Two numbers without using temp variable.
Answer Posted / ijagz
#include<conio.h>
#include<stdio.h>
int main()
{
int a,b;
printf("Enter the first number\n");
scanf("%d",&a);
printf("Enter the second number\n");
scanf("%d",&b);
printf("your answer is %d %d",b,a);
getch();
return 0;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain what is #line used for?
What is unary operator?
What is static memory allocation?
What is hashing in c language?
What are the 5 types of organizational structures?
How was c created?
Write a program in c to replace any vowel in a string with z?
What is indirection in c?
c language interview questions & answer
What are the advantages of Macro over function?
What is the difference between local variable and global variable in c?
What are global variables and explain how do you declare them?
What is an operator?
what value is returned to operating system after program execution?
What is the explanation for prototype function in c?