#include<stdio.h>
#include<conio.h>
# define swap(a,b) temp=a; a=b; b=temp;
void main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
Answer Posted / harish
it enters into swap function only when i>j.
but i contains 5 and j contains 10.
can u plz explain this
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of bit field?
What is the general form of function in c?
How does normalization of huge pointer works?
What is the difference between far and near ?
What are the types of data structures in c?
What is the use of parallelize in spark?
Dont ansi function prototypes render lint obsolete?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Why c is procedure oriented?
What is an endless loop?
How many keywords (reserve words) are in c?
What is auto keyword in c?
What is a const pointer in c?
What are global variables?
What is pointer & why it is used?