VOOZH about

URL: https://www.geeksforgeeks.org/c/grapherrormsg-function-c/

⇱ grapherrormsg() function in C - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

grapherrormsg() function in C

Last Updated : 23 Jan, 2018
The header file graphics.h contains grapherrormsg() function which returns an error message string. Syntax :
char *grapherrormsg( int errorcode );
where,
errorcode: code for the respective error
Illustration of the grapherrormsg() : In the below program, gd = DETECT is not written and thus program must throw an error. Below is the implementation of grapherrormsg() function in C Output :
👁 Image
Comment