English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How to print the characters indvidually (program should be in c language)

2006-07-23 22:32:23 · 3 answers · asked by coolcandy 1 in Computers & Internet Software

3 answers

simple. get the string in character array then then display each character by displaying the array contents one by one...

2006-07-23 22:36:27 · answer #1 · answered by Cool Guy 2 · 0 0

Hi Cool read it and learn

http://www.gnu.org/software/gawk/manual/html_node/String-Functions.html#String-Functions

http://www.camtp.uni-mb.si/books/Thinking-in-C++/Chapter01.html

Want more Coolcandy

http://www.yossman.net/support/cgisecurity.html

2006-07-23 22:42:07 · answer #2 · answered by Joe_Young 6 · 0 0

Lazy !

/* String is given as the program parameter */
#include
int main (int argc, char **argv)
{
char *word, *pc;
if (argc < 2) return 0;

word = argv[1];
for (pc=word; *pc; pc++) {
printf ("%c\n", *pc);
}
return 0;
}

2006-07-23 22:35:47 · answer #3 · answered by bloo435 4 · 0 0

fedest.com, questions and answers