| Back to Questions Page | | Question |
how can u draw a rectangle in C |
Rank |
Answer Posted By | |
Interview Question Submitted By :: Sandipan | |
I also faced this Question!! |
© ALL Interview .com | | Answer |
BY USING PRINTF AND SCANF  |
2 | Vincent | | |
| | | Answer |
Using a rectangle(int,int,int,int)function of c graphics.  |
2 | Ketan Bhavsar | | |
| | | Answer |
using include<graphic.h>  |
0 | Soumya | | |
| | |
| | | | Answer |
using ASCII codes and then using goto statements  |
0 | Sumit | | |
| | | Answer |
using rectangle(int,int,int,int)
<left,top,right,bottom>
it is a function in graphics.h  |
0 | M.d.balaji | | |
| | | Answer |
USING rectangle(int,int,int,int)
it is a function in graphics.h  |
0 | M.d.balaji | | |
| | | Answer |
including graphics.h
then initialising graphics system using initgraph
and using the function rectangle(int left,int top,int
right,int bottom)  |
0 | Sala | | |
| | | Answer |
no answer  |
0 | Guest | | |
| | | Answer |
using rectangle(int right,int top,int left,int bottom) in
graphics.h  |
0 | Suganya | | |
| | | Answer |
first include the graphics.h file
thus you can use the rectangle funtion give the proper
parameters and the wor is done  |
0 | Azad | | |
| | | Answer |
Divide by Zero.  |
0 | Anonymous | | |
| | | Answer |
BY using #include<graphics.h>
we can draw rectangle.
The syntax is rectangle(int ,int ,int ,int)
{left,top,right,bottom}  |
0 | Venkat | | |
| | | Answer |
printf("____________________");
printf("\n|\t\t|\n|\t\t|\n|\t\t|\n|\t\t|");
printf("____________________");
by this way i think can be possible,though some
adjustment may required...as per size of VDU.As per my
opinion intervier asked for this answer....as C graphics is
not so popularly used.
Pardon me if i'm wrong & can also mail to me.  |
0 | Subhradip | | |
| | | Answer |
line(x1,y1,x2,y1)
line(x1,y2,x2,y2)
line(x1,y1,x1,y2)
line(x2,y1,x2,y2)  |
0 | Venkatesh | | |
| | | Answer |
/* simple.c
example 1.0
*/
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT, gm;
initgraph(&gd, &gm, "c:\\turboc3\\bgi " );
rectangle(200,50,350,150);
getch();
closegraph();
}  |
0 | Raj | | |
| | |
| |
|
Back to Questions Page |
|