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
 
main() { int c = 5; printf("%d", main||c); } a. 1 b. 5 c. 0 d. none of the above HCL 2
what is the output of the below program & why ? #include<stdio.h> void main() { int a=10,b=20,c=30; printf("%d",scanf("%d%d%d",&a,&b,&c)); } IIIT 6
void main() { static int i=5; if(--i){ main(); printf("%d ",i); } }   1
#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"); }   1
What are the files which are automatically opened when a C file is executed?   1
C program to print magic square of order n where n > 3 and n is odd Accenture 2
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); } CSC 3
source code for delete data in array for c TCS 1
why java is platform independent? Wipro 12
Write a program to implement the motion of a bouncing ball using a downward gravitational force and a ground-plane friction force. Initially the ball is to be projected in to space with a given velocity vector   2
What are segment and offset addresses? Infosys 2
#define DIM( array, type) sizeof(array)/sizeof(type) main() { int arr[10]; printf(“The dimension of the array is %d”, DIM(arr, int)); }   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