How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer Posted / girish
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
int a,b;
clrscr();
printf("Enter the two values:");
scanf("%d%d",&a,&b);
swap(a,b);
pritnf("the swaping of given two values are:\na=%d,b=%
d",a,b);
getch();
}
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is the g value paradox?
What are the disadvantages of c language?
How to write a code for reverse of string without using string functions?
which type of aspect you want from the student.
Explain #pragma statements.
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
what do you mean by inline function in C?
code for replace tabs with equivalent number of blanks
What is context in c?
What is FIFO?
Is c object oriented?
What is a example of a variable?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
using for loop sum 2 number of any 4 digit number in c language