Displaying an Address, use %p. - C Language Basics

C examples for Language Basics:printf

Description

Displaying an Address, use %p.

Demo Code

#include <stdio.h>

int sample;//w ww.  j  a  v  a  2s.co  m

int main(void)
{
   printf("%p", &sample);

   return 0;
}

Result


Related Tutorials