Browse Source

Escape * in C/C++ supervision 1

Andrea Franceschini 4 years ago
parent
commit
21d5440644
1 changed files with 2 additions and 2 deletions
  1. 2 2
      files/ProgC/supervision_1.html

+ 2 - 2
files/ProgC/supervision_1.html

@@ -90,10 +90,10 @@
     <p>Write a program <code>calc</code> which evaluates an expression in Reverse Polish Notation given on the command line; for example</p>
 
     <pre>
-    $ calc 2 3 4 + *
+    $ calc 2 3 4 + \*
     </pre>
 
-    <p>should print 14.</p>
+    <p>should print 14. The character <code>*</code> needs to be escaped with a backslash in some shells or otherwise it gets expanded to all the files in your current directory.</p>
 
     <hr />