Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/07/2012, 19:30
quilmes_05
 
Fecha de Ingreso: octubre-2010
Mensajes: 219
Antigüedad: 13 años, 11 meses
Puntos: 2
Pregunta punteros en c

Buenas,

tengo el siguiente programita:



struct Struct_Node{
ELEM value;
struct Struct_Node* nextNode;
};

typedef struct Struct_Node* Node;


int main(){

Node n=(Node)malloc(sizeof(struct Struct_Node));
n->nextNode=(Node)malloc(sizeof(struct Struct_Node));
Node proc=n->nextNode;
n->nextNode=NULL;
printf("%d ",proc); //no imprime NULL
printf("%d ",n->nextNode); //imprime NULL

return 0;
}

No entiendo porque proc no me imprime NULL como si lo hace n->nextNode,hay algo que estoy entendiendo mal y nose...Espero alguna ayuda..

Saludos