0

Is main in c program a identifier ?

If main is a method name then why it shows error on changing main ??

10th Oct 2019, 6:36 AM
D S M
D S M - avatar
4 ответов
+ 6
The main function can't be renamed to something else.
10th Oct 2019, 6:39 AM
Sonic
Sonic - avatar
+ 3
Any other function or variable can have user defined names.
10th Oct 2019, 6:49 AM
Sonic
Sonic - avatar
+ 3
In Java and C main method is inbuilt method. We cannot change it.
10th Oct 2019, 8:11 AM
A͢J
A͢J - avatar
+ 1
But we can change identifier names ?
10th Oct 2019, 6:41 AM
D S M
D S M - avatar