how can u draw a rectangle in C
Answers were Sorted based on User's Feedback
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 |
Answer / bhargav
c 4 computer
so u can draw a rectangle using paint.
| Is This Answer Correct ? | 1 Yes | 3 No |
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 |
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 |
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 |
write a program in c language to get the value of arroy keys pressed and display the message which arrow key is pressed?
main() { int *j; { int i=10; j=&i; } printf("%d",*j); }
Write a program that find and print how many odd numbers in a binary tree
main() { unsigned int i=10; while(i-->=0) printf("%u ",i); }
What is the difference between proc means and proc tabulate ? explain with a simple example when you have to use means or tabulate?
program to find the roots of a quadratic equation
14 Answers College School Exams Tests, Engineering, HP, IIIT, Infosys, Rajiv Gandhi University of Knowledge Technologies RGUKT, SSC,
#if something == 0 int some=0; #endif main() { int thing = 0; printf("%d %d\n", some ,thing); }
what is brs test reply me email me kashifabbas514@gmail.com
Is this code legal? int *ptr; ptr = (int *) 0x400;
main() { register int a=2; printf("Address of a = %d",&a); printf("Value of a = %d",a); }
Write a Program in 'C' To Insert a Unique Number Only. (Hint: Just Like a Primary Key Numbers In Database.) Please Some One Suggest Me a Better Solution for This question ??
Develop a routine to reflect an object about an arbitrarily selected plane