is order urgent doubt



Hi!

I write the 2 codes

int i;
i = sizeof(long int);
printf("%i", i);

i = sizeof(int long);
printf("%i", i);

and the first code and second code print 4.

I write another 2 codes

i = sizeof(double int);
printf("%i", i);

i = sizeof(int double);
printf("%i", i);

and the first code print 4 and the second code print 8.

My doubt is why is different number? Is order urgent?

.



Relevant Pages

  • Re: is order urgent doubt
    ... i = sizeof(double int); ... and the first code print 4 and the second code print 8. ...
    (comp.lang.c)
  • Re: is order urgent doubt
    ... i = sizeof(long int); ... and the first code print 4 and the second code print 8. ...
    (comp.lang.c)
  • Re: is order urgent doubt
    ... i = sizeof(long int); ... and the first code print 4 and the second code print 8. ...
    (comp.lang.c)
  • Re: is order urgent doubt
    ... i = sizeof(long int); ... and the first code print 4 and the second code print 8. ...
    (comp.lang.c)
  • More about pointer equality
    ... The recent thread on pointer equality leads me to wonder about the following ... int *f ... I think most compilers will make the above code print out "Equal", ... C90 and C99 standards seem to me to require it to print out "Not equal". ...
    (comp.std.c)