'Beginner to C Programming - .c file that will operate outside of console / terminal and interact with GUI?

I'm several months into learning C programming and so far have used .c files that always output to the console. Can someone suggest a sample .c file with code that would interact with the GUI? Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source