C examples for Language Basics:printf
Displaying an Address, use %p.
#include <stdio.h> int sample;//w ww. j a v a 2s.co m int main(void) { printf("%p", &sample); return 0; }