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 |
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
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.
main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }
#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"); }
main() { int i=-1; +i; printf("i = %d, +i = %d \n",i,+i); }
code of a program in c language that ask a number and print its decremented and incremented number.. sample output: input number : 3 321123
how can i cast a char type array to an int type array
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); }
can u give me the c codings for converting a string into the hexa decimal form......
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 .
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); }