home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
qc_prog
/
chap16
/
backward.c
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-04-07
|
298 b
|
16 lines
/* backward.c -- the backwards word displayer */
#include <stdio.h>
#define SIZE 5
char word[SIZE] = "trap";
main()
{
unsigned int index;
printf("%s backwards is ", word);
for (index = SIZE - 2; index >= 0; index--)
putchar(word[index]);
putchar('\n');
}