write a program to swap Two numbers without using temp variable.
Answer Posted / rani
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf ("enter the values to a & b");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("%d%d",a,b);
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between a function and a method in c?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
Explain built-in function?
What is malloc return c?
How can I automatically locate a programs configuration files in the same directory as the executable?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
How are 16- and 32-bit numbers stored?
What do you understand by normalization of pointers?
What is an example of structure?
Which header file should you include if you are to develop a function which can accept variable number of arguments?
Write a program to implement queue.
Is a pointer a kind of array?
What is the function of this pointer?
Explain what is the difference between a free-standing and a hosted environment?
What is the correct declaration of main?