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
Compare interpreters and compilers.
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
What is the difference between the expression “++a” and “a++”?
Write a program to check armstrong number in c?
What is nested structure with example?
How can you invoke another program from within a C program?
Distinguish between actual and formal arguments.
What is integer constants?
How can I recover the file name given an open stream or file descriptor?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What are disadvantages of C language.
Why doesnt this code work?
What are derived data types in c?
Explain the use of bit fieild.