i know what the !n1 means...but how is the return statement choosing which one?

it is saying return false and true OR true and false.
How does it know which one to choose? Only one boolean type comes out from that, either its true, or its false?

i just dont get how it can tell if firstAnd || secondAnd; is either true or false. What exactly is it looking for?
if firstAnd is true OR secondAnd is true?<---- this?
if firstAnd is false OR secondAnd is false?<----or this? Or both?

The above expression will store "true" into the variable "whatever" under the condition that first is true or second is true. If both "first" is false and "second" is false, it will store "false" into "whatever". So, to summarize, unless both "first" and "second" are false, the entire expression evaluates to true, and true gets stored into the variable whatever.

I understand now what you mean:
In all cases you function return false guess why??
n1 and n2 are complementary (only n1 or n2 will be true but but not both in the same time; if the two adjacent "cell" in the arry are egale to 2 or 4) in that case you function will return false. because n1 and n2 :
!n1 && n2 is always FALSE
n1 AND!n2 is allways false
so fase OR false is false.

if the to adjacent cases in the array enum are not egale 2 or 4
the result is false because n1 and n2 are initialize to false by defaulte.

the Xor function return false if the two values are both true or both false;
The only case where the two values are equal; in our case; is when the two addjacent "cell" are both not egal to 2 or 4;
If it is so we can simply write:

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...

Hi. so this is actually a continuation from another question of mineHere but i was advised to start a new thread as the original question was already answered.

This is the result of previous question answered :