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

Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

0 Answers   Honeywell,


There are 21 people in a room. They have to form groups of 3 people each. How many combinations are possible? Write a C program to print the same.

1 Answers   TCS,


main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }

1 Answers   Zoho,


#define assert(cond) if(!(cond)) \ (fprintf(stderr, "assertion failed: %s, file %s, line %d \n",#cond,\ __FILE__,__LINE__), abort()) void main() { int i = 10; if(i==0) assert(i < 100); else printf("This statement becomes else for if in assert macro"); }

1 Answers  


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

1 Answers  






code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123

1 Answers   HCL,


how can i cast a char type array to an int type array

2 Answers  


Write, efficient code for extracting unique elements from a sorted list of array. e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9).

13 Answers   Intel, Microsoft, TCS,


what is the output of following program ? void main() { int i=5; printf("%d %d %d %d %d ",i++,i--,++i,--i,i); }

10 Answers  


can u give me the c codings for converting a string into the hexa decimal form......

1 Answers  


write a c program to Create a mail account by taking the username, password, confirm password, secret_question, secret_answer and phone number. Allow users to register, login and reset password(based on secret question). Display the user accounts and their details .

2 Answers  


void pascal f(int i,int j,int k) { printf(ā€œ%d %d %dā€,i, j, k); } void cdecl f(int i,int j,int k) { printf(ā€œ%d %d %dā€,i, j, k); } main() { int i=10; f(i++,i++,i++); printf(" %d\n",i); i=10; f(i++,i++,i++); printf(" %d",i); }

1 Answers  


Categories