write a program to swap Two numbers without using temp variable.
Answer Posted / akash
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter the value a & b");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("interchange in a & b =%d%d",a,b);
getch();
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is unsigned int in c?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
What is sizeof int in c?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none
What is c token?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
how to find anagram without using string functions using only loops in c programming
I need testPalindrome and removeSpace
#include
What is extern c used for?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
What Is The Difference Between Null And Void Pointer?
write a c program to find the sum of five entered numbers using an array named number
What is meant by preprocessor in c?
Explain how can I convert a number to a string?
What are qualifiers?