#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 are loops c?
Explain built-in function?
Is flag a keyword in c?
What should malloc(0) do?
Explain what is the difference between null and nul?
What are unions in c?
How can I avoid the abort, retry, fail messages?
Why is a semicolon (;) put at the end of every program statement?
What does c value mean?
how can use subset in c program and give more example
What is assignment operator?
Explain can static variables be declared in a header file?
Lists the benefits of c programming language?
What are the 5 types of inheritance in c ++?
What is the best style for code layout in c?