G
Gerry Ford
I would like to write a program that prints the address of something passed.
Declare a variable in main that equals 42:
j = 42.0;
, reference this:
pointer = &j;
, and print it out externally. If it were, instead, internal, this might
be:
! function print_it
#include <stdio.h>
// c++ no longer wants .h as std::include
int main (void) {return zero;}
ptr p;
int j = 42;
p = &j;
printf ( %p, *);
END
Grateful for your thoughtful comment.
Declare a variable in main that equals 42:
j = 42.0;
, reference this:
pointer = &j;
, and print it out externally. If it were, instead, internal, this might
be:
! function print_it
#include <stdio.h>
// c++ no longer wants .h as std::include
int main (void) {return zero;}
ptr p;
int j = 42;
p = &j;
printf ( %p, *);
END
Grateful for your thoughtful comment.