Its simple
_outp passes 8 bits which correspond to 8 leds

in you language .
so 00000001 is 1st led
and 00000010 is 2nd led
to change the state of either similarly OR or AND the current state with the appropiate number and pass the number to the port .
To turn 2nd on simply OR with 2 which is
00000000 OR 00000010 = 00000010 ( previous state off )
00000010 OR 00000010 = 00000010 ( previous state on )
To switch off
00000000 AND 11111101 = 00000000 ( previous state off )
00000010 AND 11111101 = 00000000 ( previous state on )