how can u draw a rectangle in C

Answers were Sorted based on User's Feedback



how can u draw a rectangle in C..

Answer / mohan

by using graphic header file
ex:
#include"graphic.h"
main()
{
rect(100,150,50,200);
}

Is This Answer Correct ?    0 Yes 2 No

how can u draw a rectangle in C..

Answer / bhargav

c 4 computer
so u can draw a rectangle using paint.

Is This Answer Correct ?    1 Yes 3 No

how can u draw a rectangle in C..

Answer / senthilkumar

First we insert the graphics mode into your complier,and we
use the function rectangle(); in the rectangle function we
specified the length and breath,and we also specified where
the place in screen the rectangle is drawn.

Is This Answer Correct ?    10 Yes 14 No

how can u draw a rectangle in C..

Answer / swatter

These are all non-standard libraries for graphics, they
arent used at all in today's date. They are libraries which
where introduced 20 yrs back and same with turbo C!

Is This Answer Correct ?    1 Yes 5 No

how can u draw a rectangle in C..

Answer / natarasan.k

by using the hand with pen and scale

Is This Answer Correct ?    1 Yes 8 No

how can u draw a rectangle in C..

Answer / arthanari r

to use follows

rect(x1,y1.x2,y2);

Is This Answer Correct ?    10 Yes 20 No

how can u draw a rectangle in C..

Answer / ganesh

using turboc2 editor

Is This Answer Correct ?    9 Yes 24 No

how can u draw a rectangle in C..

Answer / subhradip

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.

Is This Answer Correct ?    20 Yes 56 No

how can u draw a rectangle in C..

Answer / shiju

using pen & scale

Is This Answer Correct ?    16 Yes 59 No

how can u draw a rectangle in C..

Answer / guest

no answer

Is This Answer Correct ?    27 Yes 84 No

Post New Answer

More C Code Interview Questions

How do you write a program which produces its own source code as its output?

7 Answers  


main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(ā€œ%u %u %u %d \nā€,a,*a,**a,***a); printf(ā€œ%u %u %u %d \nā€,a+1,*a+1,**a+1,***a+1); }

2 Answers  


#include<stdio.h> main() { char s[]={'a','b','c','\n','c','\0'}; char *p,*str,*str1; p=&s[3]; str=p; str1=s; printf("%d",++*p + ++*str1-32); }

1 Answers  


#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }

1 Answers  


Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };

1 Answers  






how to delete an element in an array

2 Answers   IBM,


prog. to produce 1 2 3 4 5 6 7 8 9 10

4 Answers   TCS,


void func1(int (*a)[10]) { printf("Ok it works"); } void func2(int a[][10]) { printf("Will this work?"); } main() { int a[10][10]; func1(a); func2(a); } a. Ok it works b. Will this work? c. Ok it worksWill this work? d. None of the above

1 Answers   HCL,


void ( * abc( int, void ( *def) () ) ) ();

1 Answers  


Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange

0 Answers  


what is brs test reply me email me kashifabbas514@gmail.com

0 Answers  


main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }

1 Answers  


Categories