ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 


 

Company >> ACC >> Interview Questions >> C Code Interview Questions
 
  C Code Interview Questions (1)   General Aptitude Interview Questions (1)   APPSC AllOther Interview Questions (1)
  Call Centre AllOther Interview Questions (7)   Accounting AllOther Interview Questions (7)   Taxation Interview Questions (2)
  CompanyAffairs CS Interview Questions (1)   Business Management AllOther Interview Questions (1)   Marketing Sales Interview Questions (2)
  Electrical Engineering Interview Questions (5)   Mechanical Engineering Interview Questions (1)   WebMethods Interview Questions (1)
  Oracle Apps Financial Interview Questions (3)   Oracle Apps Technical Interview Questions (2)   Siebel Interview Questions (1)
  SAP CRM Interview Questions (1)   HR Interview Questions (1)   FI CO Interview Questions (6)
  MM Interview Questions (2)   SD Interview Questions (3)   ABAP Interview Questions (4)
  HR Questions Interview Questions (6)   Data Warehouse General Interview Questions (1)   ETL Interview Questions (1)
  SAS Interview Questions (3)   Informatica Interview Questions (1)   JDBC Interview Questions (1)
  Core Java Interview Questions (3)   JCL Interview Questions (1)   Test Documents Reporting Interview Questions (1)
  Test Cases Interview Questions (1)   Manual Testing Interview Questions (7)   Automation Testing AllOther Interview Questions (1)
  QTP Interview Questions (1)   WinRunner Interview Questions (3)   Data Structures Interview Questions (1)
  SQL PLSQL Interview Questions (6)   MySQL Interview Questions (8)   SQL Server Interview Questions (1)
  Dot Net AllOther Interview Questions (1)   Dot Net General Interview Questions (1)   Dot Net Framework Interview Questions (1)
  ASP.NET Interview Questions (1)   C Sharp Interview Questions (2)   Networking Administration Interview Questions (3)
  Programming Languages AllOther Interview Questions (1)   C Interview Questions (5)
 
Back to Questions Page
Question   how can u draw a rectangle in C Rank Answer Posted By  
 Interview Question Submitted By :: Sandipan
I also faced this Question!!   © ALL Interview .com
Answer
BY USING PRINTF AND SCANF
 
2 Vincent
 
 
Answer
Using a rectangle(int,int,int,int)function of c graphics.
 
2 Ketan Bhavsar
 
 
Answer
using include<graphic.h>
 
0 Soumya
 
 
 
Answer
using ASCII codes and then using goto statements
 
0 Sumit
 
 
Answer
using rectangle(int,int,int,int)
               <left,top,right,bottom>
it is a function in graphics.h
 
0 M.d.balaji
 
 
Answer
USING rectangle(int,int,int,int)
it is a function in graphics.h
 
0 M.d.balaji
 
 
Answer
including graphics.h
then initialising graphics system using initgraph
and using the function rectangle(int left,int top,int 
right,int bottom)
 
0 Sala
 
 
Answer
no answer
 
0 Guest
 
 
Answer
using rectangle(int right,int top,int left,int bottom) in 
graphics.h
 
0 Suganya
 
 
Answer
first include the graphics.h file 
thus you can use the rectangle funtion give the proper 
parameters and the wor is done
 
0 Azad
 
 
Answer
Divide by Zero.
 
0 Anonymous
 
 
Answer
BY using #include<graphics.h>
we can draw rectangle.
The syntax is rectangle(int ,int ,int ,int)
{left,top,right,bottom}
 
0 Venkat
 
 
Answer
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.
 
0 Subhradip
 
 
Answer
line(x1,y1,x2,y1)
line(x1,y2,x2,y2)
line(x1,y1,x1,y2)
line(x2,y1,x2,y2)
 
0 Venkatesh
 
 
Answer
/*  simple.c
    example 1.0
*/
#include<graphics.h>
#include<conio.h>

void main()
{
    int gd=DETECT, gm;

    initgraph(&gd, &gm, "c:\\turboc3\\bgi " );
    rectangle(200,50,350,150); 

    getch();
    closegraph();
}
 
0 Raj
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com