Q:

getdrivername function using graphics.h

0

getdrivername function using  graphics.h

Function getdrivername returns a pointer to the current graphics driver.

All Answers

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

#include <graphics.h>
#include <conio.h>

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

   char *name;

   initgraph(&gd, &gm, "C:\\TC\\BGI");

   name = getdrivername();
   outtextxy(200, 200, name);

   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