Ask Question
12 August, 21:13

Empty parentheses following a function name in a function definition indicate that the function does not require any parameters to perform its task.

+4
Answers (1)
  1. 12 August, 22:54
    0
    This statement is correct.

    Explanation:

    If a function does not have any parameters, then we can create the variable inside the function which will be private and call the function from the main function.

    If we specify any return type like int, float or char, etc then we need to declare a return value from the function.

    But If we specify the Void then we don't need to return value inside the function, we can directly print the value inside function.

    Ex.

    void add ()

    {

    int a=7;

    int b=9;

    int c=a+b;

    System. out. println ("the added value is : "+c);

    }
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Empty parentheses following a function name in a function definition indicate that the function does not require any parameters to perform ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers