Question about a project containing multiple main functions
In practice printf function and sizeof function, I created two source files printf function.c and sizeof function.c
At this time, there are two main functions in one, and the system reports an error
Solution 1
Right click on the solution – add – create a new page, create a new project
Then move the printf function.c or sizeof function.c to the new project
Right-click on the project – set it as a startup project, so that one of the projects can be run! Set which project you want to run as the startup project
Solution 2
Right-click on one of the files and select Properties!
Select Yes for Exclude from build.