write a program to swap Two numbers without using temp variable.
Answer Posted / bhokal
#include <stdio.h>
#include <stdlib.h>
void main()
{
int p,r;
printf("enter no to b swaped:\n");
scanf("%d%d",&p,&r);
printf("swapped no . are\n%d\n%d\n",r,p);
getch();
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Why c is called top down?
Can you please explain the difference between syntax vs logical error?
What is the role of && operator in a program code?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is string length in c?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
Write a program to print "hello world" without using a semicolon?
Is linux written in c?
How can a string be converted to a number?
Explain which function in c can be used to append a string to another string?
What header files do I need in order to define the standard library functions I use?
What is LINKED LIST? How can you access the last element in a linked list?
Differentiate between calloc and malloc.
Where register variables are stored in c?
What is the size of array float a(10)?