a C prog to swap 2 no.s without using variables just an
array?
Answer Posted / baidyanath bisoyi
void main()
{
int a,b;
printf("enter the two numbers\n");
scanf("%d%d",&a,&b);
printf("a=%d\n b=%d\n",a,b);
a=a+b-(b=a);
printf("a=%d\n b=%d\n",a,b);
getch();
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What are the types of type qualifiers in c?
What is static and volatile in c?
What is meant by operator precedence?
What is chain pointer in c?
What is pass by value in c?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What is unsigned int in c?
What is union and structure?
What does typeof return in c?
When was c language developed?
write a progrmm in c language take user interface generate table using for loop?
How many bytes are occupied by near, far and huge pointers (dos)?
What is the difference between far and near ?
Explain about the constants which help in debugging?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....