LoginSignup
1
0

More than 3 years have passed since last update.

1 + "0123" が84になる言語

Posted at

twitterで見つけたネタ。

これで1 + "0123"が84になる言語ってあるの?って話題になっていたので、tclならなるよっと試してみました。

tclインタプリタの起動はtclshです。最近のUbuntuはデフォルトで入ってないので、自力で入れてください。

> tclsh
% expr 1 + "0123" 
84
%

84ですね。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0