Eternius: Verständnisfrage zum Speicher

Beitrag lesen

Hallo,

Folgendes Miniprogramm:

#include <stdio.h>

int main(void)    {
int a;
int b;

printf("a:%x b:%x\n", &a, &b);
printf("Distanz: %d\n", (b-a) );
}


>   
> Wieso ergibt b-a eine riesige Zahl? Sollte es nicht 4 ergeben?  
  
  äh, was steht denn in a und b drin? Was gibt der Inhalt von b - Inhalt von a?  
  
gruss

-- 
Swiss Army Chainsaw  
  
Terrorific!  
Given a cow full of milk, should the milk un-cow itself, or should the cow milk itself?