My coding shows error when built and run.
The error shows multiple definition of 'main'.
Can someone help me what I did wrong here?
#include <stdio.h>
int main()
{
FILE *fPtr;
int c;
fPtr=fopen("C:\\Question1.txt","r");
c = getc(fPtr);
while (c!=EOF)
{
putchar(c);
c=getc(fPtr);
}
fclose(fPtr);
return 0;
}