0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

論理演算子 Python・C++・Java・JavaScriptの違い

Last updated at Posted at 2025-05-28

Python・C++・Java・JavaScript の4言語における 代表的な論理演算子 の違いは論理演算子(OR、AND、NOT)の言語別比較を表形式でまとめました:

論理演算子 Python C++ Java JavaScript
OR or || || ||
AND and && && &&
NOT not ! ! !

Pythonは自然言語に近い構文(and, or, not)を使う一方、C++やJava、JavaScriptは記号的な構文&&, ||, !)を用いる傾向があります。

参考資料:

0
0
2

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?