top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Help me to write a C program to switch the 256 color graphics mode?

+1 vote
347 views
Help me to write a C program to switch the 256 color graphics mode?
posted Mar 15, 2016 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Here is the code to switch 256 color graphics mode:

#include<stdio.h>
#include<dos.h>
void main()
{
   int x,y,b;
   union REGS i,o;
   i.h.ah=0;
   i.h.al=0x13;
   int86(0x10,&i,&o);   
   getch();
}
answer Mar 15, 2016 by Shivam Kumar Pandey
Similar Questions
–2 votes

Write java program that deal with different shapes. Shapes mean geometry shapes i.e. circle, rectangle, square, and triangle.

Circle: radius
Rectangle: height and width
Square: height
Triangle: base and height

All shapes have area but each shape has specific way for calculating the area:

Circle: ½ pie square *radius
Rectangle: height * width
Square: height * height
Triangle: ½ base *height

Finally, in the main program
1. Define all different kinds of shapes
2. Call Area method for all objects and print result .

...