showaddr.c
Upload User: dq031136
Upload Date: 2022-08-08
Package Size: 802k
Code Size: 0k
Development Platform:

C++ Builder

  1. #include <stdio.h>
  2. void main(void)
  3.  {
  4.   int a = 1, b = 2, c = 3;
  5.    printf("The address of a is %x the value of a is %dn", &a, a);
  6.    printf("The address of b is %x the value of b is %dn", &b, b);
  7.    printf("The address of c is %x the value of c is %dn", &c, c);
  8.  }