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
Differentiate between full, complete & perfect binary trees.
What is the scope of an external variable in c?
what are # pragma staments?
what are the facialities provided by you after the selection of the student.
Explain what is the stack?
What does c mean in basketball?
what are non standard function in c
How can you check to see whether a symbol is defined?
Why c is known as a mother language?
What does char * * argv mean in c?
What are the 4 types of organizational structures?
#include
Can a pointer be null?
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
How can I swap two values without using a temporary?