ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Code Snippets >> Programming Code >> C Code
 
 


 

 
 C Code interview questions  C Code Interview Questions (401)
 C++ Code interview questions  C++ Code Interview Questions (121)
 VC++ Code interview questions  VC++ Code Interview Questions (2)
 Java Code interview questions  Java Code Interview Questions (57)
 Dot Net Code interview questions  Dot Net Code Interview Questions (113)
 Visual Basic Code interview questions  Visual Basic Code Interview Questions (8)
 Programming Code AllOther interview questions  Programming Code AllOther Interview Questions (37)
Question
how can u draw a rectangle in C
 Question Submitted By :: Sandipan
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can u draw a rectangle in C
Answer
# 1
BY USING PRINTF AND SCANF 
Is This Answer Correct ?    112 Yes 251 No
Vincent
 
  Re: how can u draw a rectangle in C
Answer
# 2
Using a rectangle(int,int,int,int)function of c graphics. 
Is This Answer Correct ?    425 Yes 35 No
Ketan Bhavsar
 
 
 
  Re: how can u draw a rectangle in C
Answer
# 3
using include<graphic.h> 
Is This Answer Correct ?    183 Yes 41 No
Soumya
 
  Re: how can u draw a rectangle in C
Answer
# 4
using ASCII codes and then using goto statements 
Is This Answer Correct ?    42 Yes 126 No
Sumit
 
  Re: how can u draw a rectangle in C
Answer
# 5
using rectangle(int,int,int,int)
<left,top,right,bottom>
it is a function in graphics.h
 
Is This Answer Correct ?    224 Yes 20 No
M.d.balaji
 
  Re: how can u draw a rectangle in C
Answer
# 6
USING rectangle(int,int,int,int)
it is a function in graphics.h
 
Is This Answer Correct ?    133 Yes 19 No
M.d.balaji
 
  Re: how can u draw a rectangle in C
Answer
# 7
including graphics.h
then initialising graphics system using initgraph
and using the function rectangle(int left,int top,int
right,int bottom)
 
Is This Answer Correct ?    113 Yes 12 No
Sala
 
  Re: how can u draw a rectangle in C
Answer
# 8
no answer 
Is This Answer Correct ?    27 Yes 84 No
Guest
 
  Re: how can u draw a rectangle in C
Answer
# 9
using rectangle(int right,int top,int left,int bottom) in
graphics.h
 
Is This Answer Correct ?    81 Yes 21 No
Suganya
 
  Re: how can u draw a rectangle in C
Answer
# 10
first include the graphics.h file
thus you can use the rectangle funtion give the proper
parameters and the wor is done
 
Is This Answer Correct ?    55 Yes 17 No
Azad
 

 
 
 
Other C Code Interview Questions
 
  Question Asked @ Answers
 
union u { union u { int i; int j; }a[10]; int b[10]; }u; main() { printf("\n%d", sizeof(u)); printf(" %d", sizeof(u.a)); // printf("%d", sizeof(u.a[4].i)); } a. 4, 4, 4 b. 40, 4, 4 c. 1, 100, 1 d. 40 400 4 HCL 2
#include<stdio.h> main() { const int i=4; float j; j = ++i; printf("%d %f", i,++j); }   1
How do you write a program which produces its own source code as its output?   7
void ( * abc( int, void ( *def) () ) ) ();   1
main() { int i=10; void pascal f(int,int,int); f(i++,i++,i++); printf(" %d",i); } void pascal f(integer :i,integer:j,integer :k) { write(i,j,k); }   1
main() { int a[10]; printf("%d",*a+1-*a+3); }   1
#include<stdio.h> main() { struct xx { int x; struct yy { char s; struct xx *p; }; struct yy *q; }; }   1
main() { char p[ ]="%d\n"; p[1] = 'c'; printf(p,65); }   2
How do you create a really large matrix (i.e. 3500x3500) in C without having the program crash? I can only reach up to 2500. It must have something to do with lack of memory. Please help!   1
main() { char *p = ayqm; printf(%c,++*(p++)); } TCS 29
Write a procedure to implement highlight as a blinking operation   2
#include<conio.h> main() { int x,y=2,z,a; if(x=y%2) z=2; a=2; printf("%d %d ",z,x); }   1
 
For more C Code Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com