write a program to swap Two numbers without using temp variable.
Answer Posted / sams
Two numbers are input through the keyboard into two
locations C and D. Write a program to interchange the
contents of C and D.
#include<stdio.h>
#include<conio.h>
void main( )
{
int a,b,c;
clrscr( );
printf("Enter A: ");
scanf("%d",&a);
printf("Enter B: ");
scanf("%d",&b);
c=a;
a=b;
b=c;
printf("\n The New Value Of A is : %d",a);
printf("\n The New Value Of B is : %d",b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is meant by type casting?
What is difference between stdio h and conio h?
What is string function c?
how we can make 3d venturing graphics on outer interface
In which layer of the network datastructure format change is done
can we change the default calling convention in c if yes than how.........?
What is a built-in function in C?
How are Structure passing and returning implemented by the complier?
What is logical error?
swap 2 numbers without using third variable?
What is atoi and atof in c?
Explain the array representation of a binary tree in C.
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
What does char * * argv mean in c?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..