Total members 11894 |It is currently Wed Nov 27, 2024 10:54 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





What is the difference between the Boolean & operator and the && operator?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

If an expression involving the Boolean & operator is evaluated, both operands are evaluated. Then the & operator is applied to the operand. When an expression involving the && operator is evaluated, the first operand is evaluated. If the first operand returns a value of true then the second operand is evaluated. The && operator is then applied to the first and second operands. If the first operand evaluates to false, the evaluation of the second operand is skipped.

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : difference between the Boolean & operator and the &&
 C++ Boolean Operations     -  
 Boolean type constant     -  
 Use the boolean compare operators     -  
 Define boolean Class properties     -  
 operator int()     -  
 Using the ? Operator     -  
 What is the % operator     -  
 stream operator     -  
 trinary operator     -  
 Object without new Operator     -  



Topic Tags

Java Basics






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com