what's the difference between these two sentences?
True if any element is nonzero & True if all elements are nonzero
Actually I should know the difference between any and all. aren't they the same?
True if any element is nonzero: 0, 0, 0 FALSE 0, 1, 0 TRUE 1, 1, 0 TRUE 1, 1, 1 TRUE True if all elements are nonzero: 0, 0, 0 FALSE 0, 1, 0 FALSE 1, 1, 0 FALSE 1, 1, 1 TRUE
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
True if any element is nonzero:
0, 0, 0 FALSE
0, 1, 0 TRUE
1, 1, 0 TRUE
1, 1, 1 TRUE
True if all elements are nonzero:
0, 0, 0 FALSE
0, 1, 0 FALSE
1, 1, 0 FALSE
1, 1, 1 TRUE
jalehTrue if any element is nonzero
For example:
0 ? 1= true
1 ? 0= true
1 ? 1=true
0 ? 0= false
jaleh True if all elements are nonzero
1 ? 1=true
0 ? 1=false
1 ? 0=false
0 ? 0=false