The correct option is C x – y = 0
The equation of a line with slope m and passing through the point (x1, y1) is given by
y−y1=m×(x−x1)
Given, slope of the line is 1 and it passes through origin i.e., (0, 0).
⇒y−0=1×(x−0)
Therefore the equation of the line will be y=x or y−x=0