Error: Missing character on the parameter list for main

Asked By 10 points N/A Posted on -
qa-featured

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.

SHARE
Best Answer by Laura Turner
Answered By 0 points N/A #83150

Error: Missing character on the parameter list for main

qa-featured

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)}}

Best Answer
Best Answer
Answered By 0 points N/A #83151

Error: Missing character on the parameter list for main

qa-featured

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.

Related Questions