Puzzle P7

What does the following code write to the monitor?

p pointing at a, later pointing at b
#include <stdio.h>
int main( void )
{
  int  a = 44 ;
  int  b = 66 ;
  int *p ;
  
  p = &a ; 
  printf("*p=%d\n", *p );
  
  p = &b ; 
  printf("*p=%d\n", *p );

  return 0;
}


Previous Page        Answer         Next Page         Home