Answers for "c sharp and"

C#
2

c# and

//the and operator in c sharp is "&&" (hold shift and 6 ;))
if(a == 0 && b == 0)
{
  //both a and b is 0	
}
Posted by: Guest on April-12-2021
1

and in c#

/* && would work only if both is true for example */ bool a = 1==2 && 1=< 2; // would be false 
/* but if they are both true it would be true */ bool a = 1==1 && 1==1; // would be true
Posted by: Guest on June-25-2021

C# Answers by Framework

Browse Popular Code Answers by Language