Advertisement
Guest User

Untitled

a guest
May 26th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main (){
  5.    
  6.     long int *p=NULL;
  7.    
  8.     p=(long int*)malloc(sizeof(long int));
  9.     printf ("Introduce un valor:\n");
  10.     scanf ("%d", &p);
  11.     printf ("El valor introducido es: %d\nY su direccion de memoria %d.\n", *p, &p);
  12.     system("pause");
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement