Jump to: navigation, search

Hi there. I just noticed your comment in one of your very recent K&R solutions (but haven't looked carefully at your code nor even tried to compile/run it):

I noticed that the program was giving weird results when I was using the multiplication symbol '*' as a command line input.
I couldn't figure out why that was happening so now I'm just using the 'x' symbol to denote multiplication.
I even ran the other two solutions on this page but to no avail.

Possibly the problem is that you are in a Linux (or other UNIX variant) shell and '*' is being interpreted as a wildcard, which matches all files in your current directory and passes them on as arguments to your program... no wonder it was giving weird results! --Laird (talk) 01:10, 23 November 2017 (UTC)

Personal tools