The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-22-2009
lagigliaivan lagigliaivan is offline
Registered User
  
 

Join Date: May 2008
Posts: 45
Hi

I don't understand very well this peace of code you wrote:

Code:
if(pid | pid1 == 0)//process A
This works as
Code:
 if ( pid | (pid1 == 0) )
and I don't understand really well what is the idea, could clarify it?


The code above is a OR operation and the if sentence will be performed according its result right?

---------- Post updated at 05:18 PM ---------- Previous update was at 05:16 PM ----------

I don't understand very well this piece of code you wrote:


if(pid | pid1 == 0)//process A

This works as

if ( pid | (pid1 == 0) )

and I don't understand really well it this is the idea, could you clarify it?

The code above is a OR operation and the if sentence will be performed according its result, right?