Q:

closegraph function in c using graphics.h

0

closegraph function in c using graphics.h

closegraph function closes the graphics mode, deallocates all memory allocated by graphics system and restores the screen to the mode it was in before you called initgraph.

Declaration: void closegraph();

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include<graphics.h>
#include<conio.h>
main()
{
   int gd = DETECT, gm;
   
   initgraph(&gd, &gm, "C:\\TC\\BGI");
   
   outtext("Press any key to close the graphics mode...");
   
   getch();
   closegraph();
   return 0;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now