What is wrong with the following method call?

int displayValue (x);

1 answer

It's not a call, but a declaration (also incorrect).
For a call, you'd have something like
y = displayValue (x);