Puzzle P6

Pointer Variables contain Pointer Values

Will the following code compile and run?

#include <stdio.h>
int main( void )
{
  int  a = 45 ;
  int  *pa = &a ;
 
  printf("a=%d  pa=%o\n", a, pa );  /* Inspect this statement */

  return 0;
}


Previous Page        Answer         Next Page         Home