Friday 16 April 2010

Write a program to read the address

#include <stdio.h>

int main(void)
{

  char a;
  char b;

  printf("The address of variable a is: %p\n",&a);
  printf("The address of variable b is: %p\n",&b);


  return 0;

}//end main

No comments:

Post a Comment