If the area of the triangle formed by three points is equal to zero, then the points are collinear.
Area of the triangle formed by the vertices .
Now, the given points A(–5, 1), B(1, p) and C(4, –2) are collinear.
Therefore, Area of triangle formed by them is equal to zero.
Hence, the value of p is –1.