Puzzle SL14


Will the following code compile? If so, what does it write to the monitor?

#include <stdio.h>

int g = 777;

int g( int a, int b )
{
  int g=3 ;
  printf("scope f: a=%d   b=%d   g=%d\n", a, b, g );
}

int main ( void )
{
  g( 1, 2 ) ;
  return 0 ;
}


Answer         Next Page         Previous Page Home