Program to draw a line in C graphics

C Graphics » Program to draw a line in C graphics

There is a predefined function named line which is used to draw a line on the output screen. It takes 4 arguments,

the first two parameters represent an initial point and the last two arguments are for the final points of the line. Line function is a library function which comes under Graphic.h header file.

Syntax:

Write a C program to draw a line?

Program:

Output:


You must be logged in to take the quiz.

error: Content is protected !!