1. Logical OR Sign is || and AND Sign is |.
2. Both work is same but Operation Method is Different
for example
if(a==10 || b==10)
here if a =10 then condition is Satisfied and not going checking values of B.
Moral One Operation for checking second i.e B values decrasesand in AND & operation
if(a==10 | b==10)
here if a ==10 then also it is checking B value i.e it is not necessary. Logical OR(||) is Best.
Good article
ReplyDeleteYou can submit your .net related article links on http://www.dotnettechy.com to get more traffic
Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write ups thanks once again.
ReplyDeletehtml5 converter
Welcome,
DeleteIf you required any help then any questions in comment.