왜 네 논리 연산자가 있습니까?&와 &&의 차이점은 무엇입니까? 및 || R?</p> <pre><code>&, && |, || </code></pre> <p>사용의 차이를 무엇 :
예, 문서를 확인했지만 약간 혼란 스럽습니다. 문서는 다음과 같이 말합니다 :
‘&’ and ‘&&’ indicate logical AND and ‘|’ and ‘||’ indicate
logical OR. The shorter form performs elementwise comparisons in
much the same way as arithmetic operators. The longer form
evaluates left to right examining only the first element of each
vector. Evaluation proceeds only until the result is determined.
The longer form is appropriate for programming control-flow and
typically preferred in ‘if’ clauses.
예를 들어 분명히 설명 할 것입니다. 감사.
하면 중복 된 링크를 포함 것이 좋을 것이다 ... –