Re: how to print a short and long integer?



On Sun, 25 Sep 2005 04:14:29 GMT, "a" <a@xxxxxxxx> wrote in
comp.lang.c:

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

What does your C reference book say?

What does your compiler's library manual, online help file, or man
pages tell you?

Why do you think usenet is a substitute for looking up basic
information in standard references?

Type this string into the search box at google.com:

printf "conversion specifiers"

....and follow the first link.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
.



Relevant Pages

  • Re: how to print a short and long integer?
    ... > # What does your C reference book say? ... > # printf "conversion specifiers" ...
    (comp.lang.c)
  • Re: how to print a short and long integer?
    ... Lew Pitcher a écrit: ... long l; s= -2; l= -3; printf("% _ %_",s, l); ... What characters should be filled out in the formatted string for output? ...
    (comp.lang.c)
  • Re: how to print a short and long integer?
    ... long l; s= -2; l= -3; printf("% _ %_",s, l); ... What characters should be filled out in the formatted string for output? ... int main{short s = -2; long l = -3; ...
    (comp.lang.c)
  • Re: Times 23391
    ... I am not particularly well acquainted with English literature, so trying to resolve this sort of reference is well nigh impossible. ... Is there any reference book available that provides a dictionary of characters? ... There is a Chambers Dictionary of Literary Characters. ...
    (rec.puzzles.crosswords)
  • Re: "NUL" device is missing
    ... Only VC 2003 has peaked up the fix. ... The fix was to pass NULL to _snprintf to count the number of characters ... You can easy track this down exploring CRT source of VC. ...
    (microsoft.public.windowsxp.embedded)