Puzzle C5

Echo all the Parameters

Write a program that echoes all the command line parameters after the program name, no matter how many there are. Use argc. For example here is a command line

PS C:Programs>echoAll Raindrops on roses and whiskers on kittens

The program obligingly prints out

1: Raindrops
2: on
3: roses
4: and
5: whiskers
6: on
7: kittens


Previous Page        Answer         Next Page         Home