I am having a simple doubt in C programming language.
In any simple C code snippet, if by mistake suppose i have written intmain() instead of main().
Then it represents what type of error ?
It will not be a lexical error as compiler will correctly make a token for it and it is also not a syntax error clearly.
I think it is a semantic error as in this phase compiler checks with the meaningful statements, scoping, binding, variable not declared, function not declared, any variable declared twice, etc.
But, on the other hand, I also think it as a linker error as in the semantic phase, it can throw a error that function intmain() is not declared and it is been directly used.
Can anyone make this crystal clear that what is the actual error ?