I'm an absolute beginner and can anyone help me with the error.Thanks!
@mwilki7 @saianurag this is a correct.
Make sure you delete main1.c from the project and it will compile. That is a direct copy of main.c and as mentioned puts two main() functions in the project. The compiler can only sort out one entry for a program.