Hello Everybody,
Why is it that I keep getting this error:
Error: missing ')' in parameter list for main
int main ( {
I am very sure that I have closed the declaration. I re-checked everything and the missing “)” is there. But when I compile the program it keeps on returning the same error. I really need some help on this please help me with this.
Thanks.
Answered By
bhel101
0 points
N/A
#83150
Error: Missing character on the parameter list for main
Error: missing ')' in parameter list for main
int main ( {
Is this really java?
Int is a data type. Are you initializing "main" as int? This must be like this:
Public static void main (String args[]) { (place you initialization and process here)}}
Error: Missing character on the parameter list for main
OK then your coding should be like this-
int main() {
}
It is incorrect to write int main ( {
And you can also write the code like this
int main (void) {
}
-
That is between the first brackets you have to place the parameter.
-
I had provided this solution assuming that you are working on C. If you are working on different language then ask me later.