example-1.2.c

example-1.2.c · 413 B

From the archive c_pointers_examples.tar.gz

Download the archive   « Back to the archive contents

#include <stdio.h>

int main()
{
  int  x = 1;
  char y = 'a';
  int  z = 2;

  /**********************************************
   * Uncomment the following lines to see the   *
   * actual memory addresses of these variables *
   *********************************************/
  //printf( "int  x is at: %p\n\r"
  //        "char y is at: %p\n\r"
  //        "int  z is at: %p\n\r", &x, &y, &z );

  return 0;
}

Site Stats

Snippets: 1791
Codebases: 571