Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

C Program to display mouse pointer in graphics mode

Below is the C program display Mouse Pointer in graphics mode. Here we have used 2 functions to achieve it.

int initmouse() : function is used to intialize the mouse pointer. Which returns int value. Value 0 indicates Mouse support is not available.

void showmousepointer() : function is used to show mouse pointer. Which does not return any value.

int initmouse();
void showmousepointer();
union REGS i, o;
int status, gd = DETECT, gm;
status = initmouse();
if ( status == 0 )
printf("Mouse support not available.\n");
return 0;
int initmouse()
{ = 0;
return ( );
void showmousepointer()
{ = 1;

This post first appeared on Ask For Program, please read the originial post: here

Share the post

C Program to display mouse pointer in graphics mode


Subscribe to Ask For Program

Get updates delivered right to your inbox!

Thank you for your subscription