Tcl Programming quiz, level Basics, question 6
| Question: | To read a user input from the keyboard to the variable inlinevar, you might use: |
| Answer 1: | gets stdin inlinevar This was the CORRECT answer |
| Answer 2: | inlinevar = gets(stdin) |
| Answer 3: | inlinevar = <stdin> |
| Answer 4: | $inlinevar = gets(stdin) |
| Answer 5: | $inlinevar = <stdin> |
| Answer 6: | gets stdin $inlinevar |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|