Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

How to initialize initgraph( ) in onlinegdb C compiler

+5 votes
asked Apr 22, 2025 by Sibi Joseph Michael (290 points)

1 Answer

0 votes
answered Apr 23, 2025 by Peter Minarik (101,420 points)
You can check this reference: https://code-reference.com/c/graphics.h/initgraph

However, as far as I know, the "Run with display screen" feature only works with Python as of now, so OnlineGDB only works with standard output for C and no graphics.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...