Puzzle SL7


What does the following code write to the monitor?

#include <stdio.h>
int main( void )
{
  int a = 7;
  int b = 1;

  if ( a >= b )
  {
    int temp = a;
    a = b;
    b = temp;
  }
 
  printf("a=%d\tb=%d \n", a, b );
  return 0;
}


Previous Page        Answer         Next Page         Home