Recent Posts
Java | 13 sec ago
Java | 27 sec ago
PHP | 50 sec ago
Perl | 1 min ago
None | 1 min ago
PHP | 1 min ago
C++ | 1 min ago
C | 2 min ago
None | 2 min ago
None | 3 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By Jesuino on the 22nd of Jun 2009 12:05:52 PM Download | Raw | Embed | Report
  1. int x = 10;
  2.  
  3. //P aponta para X;
  4.  
  5. int *p = &x;
  6.  
  7. printf("%p\n",p); //Imprime o endereço para o qual o ponteiro aponta
  8.  
  9. printf("%d\n",*p); //Imprime 10
  10.  
  11. printf("%p\n", &p); //Imprime o endereço do ponteiro na memória, não tem nenhuma relação com a variável que o ponteiro aponta!!!!!!
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: