Menu
  • Algorithm
  • Challenges
  • Courses
  • Subject
  • Tool Box
Login Get Started
Algorithm Room
  • Algorithm
  • Challenges
  • Courses
  • Subject
  • Tool Box
Login Get Started

arc()

bar()

bar3d()

circle()

cleardevice()

closegraph()

drawpoly()

ellipse()

fillellipse()

fillpoly()

floodfill()

getarccords()

getbkcolor()

getcolor()

getdrivername()

getimage()

getmaxcolor()

getmaxx()

getmaxy()

getpixel()

getx()

gety()

graphdefaults()

grapherrormsg()

imagesize()

line()

lineto()

linerel()

moveto()

moverel()

outtext()

outtextxy()

pieslice()

putimage()

putpixel()

rectangle()

sector()

setbkcolor()

setcolor()

setfillstyle()

setlinestyle()

settextstyle()

setviewport()

textheight()

textwidth()

  1. Home
  2. Computer Graphic
  3. Functions

sector() function

Sector function draws and fills an elliptical pie slice.

Declaration of sector() function

void sector( int x, int y, int stangle, int endangle, int xradius, int yradius);

C programming code for sector()

#include <graphics.h> 
#include <conio.h>
main()
{
int gd = DETECT, gm;
initgraph(&gd, &gm, "C:\\ TurboC3\\BGI"); 
sector(100, 100, 0, 135, 25, 35);
getch(); 
closegraph(); 
return 0;
}

Please login to Continue

  • Login Login
  • Sign Up Sign Up
Google Google GitHub GitHub
OR
Forgot Password?
Google Google GitHub GitHub
OR
Algorithm Room
  • About
  • Privacy Policy
  • Terms of Service

© 2025 Algorithm Room. All rights reserved