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 |
main() { int i=3; switch(i) { default:printf("zero"); case 1: printf("one"); break; case 2:printf("two"); break; case 3: printf("three"); break; } }
main() { int i; float *pf; pf = (float *)&i; *pf = 100.00; printf("\n %d", i); } a. Runtime error. b. 100 c. Some Integer not 100 d. None of the above
main() { int i=5; printf(ā%dā,i=++i ==6); }
main() { float i=1.5; switch(i) { case 1: printf("1"); case 2: printf("2"); default : printf("0"); } }
What is data _null_? ,Explain with code when u need to use it in data step programming ?
Write a C function to search a number in the given list of numbers. donot use printf and scanf
respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"
void main() { int c; c=printf("Hello world"); printf("\n%d",c); }
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.
6 Answers Fusion Systems GmbH,
to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD
Write a program that find and print how many odd numbers in a binary tree
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }