+ 5
Whats is different between "and" & "&&" ?
5 Réponses
+ 6
$a=true;
$b=false;
$t=$a||$b;
echo $t;
and
$a=true;
$b=false;
$t=$a or $b;
echo $t;
$t=$a or $b equal to >> ($t=$a) or $b
while other one
$t=$a||$b equal to >> $t=($a or $b)
(I prefer to example || bc && is too hard to make example for me)
+ 4
@Very_Hard(java & c++ & c# & py & rust & (AllHard))
This is only for php, right?
As in C++, the definition for 'and' in Code::Blocks is like this :
#define and &&
I don't think this leads to change in operator precedence...
And in many compilers, the written version of 'and' does not even exist...
+ 4
@Kinshuk Vasisht
I think so.and operator(not &&) is in php
but He tagged all language that make myself my mom my father my aunt my uncle my grandma and even my doll very cofused
+ 4
@Chandan Kumar Gouda
Please tag your question correctly. No one can understand which language you need an answer for. After all, In C++, there is no specific 'and' keyword, just &&, as an operator.
+ 3
Wow I thought they were all the same!