#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 / kumaravel

chance of providing answer is not possible. empty screen become view.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use a pointer to a function?

609


What are the basic data types associated with c?

785


How can I delete a file?

598


which is an algorithm for sorting in a growing Lexicographic order

1373


Describe explain how arrays can be passed to a user defined function

584






When should the register modifier be used? Does it really help?

575


Explain how do I determine whether a character is numeric, alphabetic, and so on?

630


What is the time and space complexities of merge sort and when is it preferred over quick sort?

642


can we implement multi-threads in c.

638


What is volatile keyword in c?

559


Differentiate between declaring a variable and defining a variable?

586


Difference between malloc() and calloc() function?

638


Explain what are the different file extensions involved when programming in c?

607


What is c definition?

722


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.

683