I am learning C using OnlineGDB. I wish to test and write a number of very small C code snippets in one project. However, when I create a new file and then say name it Test2.c and it has another main() function in it as does the main.c file then I get an error saying I can only have one main() function.
I do not want to set up a whole series of projects for each code snippet.
Is there any way around this?