[using the concept that if line L1 and L2 are at right angles to each other then m1×m2=−1 where m1 and m2 are slopes of L1 and L2 respectively]
Since AL passes through A, then c=2+1=3
Therefore line AL is y+x=3 orthocentre lies on AL. Hence locus of orthocentre is y+x=3