Re: how to print a short and long integer?



Lew Pitcher a écrit :
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

a wrote:

short s;
long l;
s= -2;
l= -3;
printf("% _  %_",s, l);
What characters should be filled out in the formatted string for output?


  printf("%d %ld",s,l);

Why did you do his homework Lew?

It doesn't really help him. He will stay a lazy
student, used to get around without doing any effort.

This question can be answered with a *minimal* effort,
but he doesn't even want to do that little.
.



Relevant Pages