* NAMS-%d=%c...?
@ 2002-08-31 9:16 ssams
2002-08-31 10:16 ` NAMS-%d=%c...? Scott Lanning
0 siblings, 1 reply; 2+ messages in thread
From: ssams @ 2002-08-31 9:16 UTC (permalink / raw)
To: linux-assembly
pesan db 9," %d=%c ",0
from pice of code above whats mean " %d=%c "
it come from a code to print ascii code with their value
output from the program is, ex:
A=65
--------------------- Yang Mudah dan Menghibur ----------------------------
Hosting menjadi mudah dan murah hanya di PlasaCom. Klik http://idc.plasa.com
F1 Mania!! Ikuti F1 Game di Obelix Game Corner di http://www.plasa.com/infotel/f1.html
---------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: NAMS-%d=%c...?
2002-08-31 9:16 NAMS-%d=%c...? ssams
@ 2002-08-31 10:16 ` Scott Lanning
0 siblings, 0 replies; 2+ messages in thread
From: Scott Lanning @ 2002-08-31 10:16 UTC (permalink / raw)
To: linux-assembly
On Sat, 31 Aug 2002, ssams wrote:
> pesan db 9," %d=%c ",0
>
> from pice of code above whats mean " %d=%c "
> it come from a code to print ascii code with their value
> output from the program is, ex:
> A=65
It's a format string, `man 3 printf`.
%c prints the character for whatever number is given,
%d just prints the number.
printf("%c=%d", 'A', 'A')
=> A=65
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-31 10:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-31 9:16 NAMS-%d=%c...? ssams
2002-08-31 10:16 ` NAMS-%d=%c...? Scott Lanning
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox