Ask Question | Take Test

# define swap (a, b) temp=a; a=b; b=temp;

0

# define swap (a, b) temp=a; a=b; b=temp;

main ( ) { int i, j, temp; i=5; j=10; temp=0; if( i > j) swap( i, j ); printf( "%d %d %d", i, j, temp); }
  1. 3 5 7
  2. 7 8 9
  3. 10 0 0
  4. 1 3 5
Asked By : YamunaCategory : Technical
Answer
c. 10 0 0

Copyright © Interviewkiller.com - Job Interview Questions and Answers - Recruitment Tips