Posted on:

09 Jul 2021

0

Doubt in the conditional operators && ||

Hi team,
Hope you are keeping well, I had doubt in the following code's output:

F || c(T,F) // I know F or T = T and F or F = F , but after this processing #how does we get to the final output, I am curious abou that.
Output: T
F || c(F,T)
Output: F
T && c(T,F)
Output: T
T && c(F,T)
Output: F

May I know how the && or || operator comes to a single value.
Thank you in advance.
Kind Regards
Yuvraj.

0 answers ( 0 marked as helpful)

Submit an answer