Write a declaration for a structure named
student that is to be used to store records in a college database system. The fields in
the record should include name, address, phone number, classification, age, hours
completed, and hours needed to graduate.
Analyze the code below and answer the questions which
follow
struct point
{
double x;
double y;
}
struct line
{
point pl;
point p2;
}
a. Write a statement that declares a line named my-line.
b. Write statements that set the x and y coordinates of the points that make up the line
to (2,3) and (4,6).
c. Write a statement that sets the x coordinate of the second point to the value of the y
coordinate of the first point.