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 |
How do you write a program which produces its own source code as its output?
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); }
#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); }
#include<stdio.h> main() { int i=1,j=2; switch(i) { case 1: printf("GOOD"); break; case j: printf("BAD"); break; } }
Is the following code legal? typedef struct a aType; struct a { int x; aType *b; };
how to delete an element in an array
prog. to produce 1 2 3 4 5 6 7 8 9 10
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
void ( * abc( int, void ( *def) () ) ) ();
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
what is brs test reply me email me kashifabbas514@gmail.com
main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }